@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum ExtendedKeyUsageID extends java.lang.Enum<ExtendedKeyUsageID>
ExtendedKeyUsageExtension
. Note that extended key usage extensions
may include OIDs that are not included in this enum, and any code that makes
use of the extension should be prepared to handle other key usage IDs.Enum Constant and Description |
---|
CODE_SIGNING
The extended key usage ID that indicates that the associated certificate
may be used for code signing.
|
EMAIL_PROTECTION
The extended key usage ID that indicates that the associated certificate
may be used for email protection.
|
OCSP_SIGNING
The extended key usage ID that indicates that the associated certificate
may be used for signing OCSP responses.
|
TIME_STAMPING
The extended key usage ID that indicates that the associated certificate
may be used for time stamping.
|
TLS_CLIENT_AUTHENTICATION
The extended key usage ID that indicates that the associated certificate
may be used for TLS client authentication.
|
TLS_SERVER_AUTHENTICATION
The extended key usage ID that indicates that the associated certificate
may be used for TLS server authentication.
|
Modifier and Type | Method and Description |
---|---|
static ExtendedKeyUsageID |
forName(java.lang.String name)
Retrieves the extended key usage ID with the specified name.
|
static ExtendedKeyUsageID |
forOID(OID oid)
Retrieves the extended key usage ID value with the specified OID.
|
java.lang.String |
getName()
Retrieves the human-readable name for this extended key usage ID value.
|
static java.lang.String |
getNameOrOID(OID oid)
Retrieves the human-readable name for the extended key usage ID value with
the provided OID, or a string representation of the OID if there is no
value with that OID.
|
OID |
getOID()
Retrieves the OID for this extended key usage ID value.
|
static ExtendedKeyUsageID |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExtendedKeyUsageID[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExtendedKeyUsageID TLS_SERVER_AUTHENTICATION
public static final ExtendedKeyUsageID TLS_CLIENT_AUTHENTICATION
public static final ExtendedKeyUsageID CODE_SIGNING
public static final ExtendedKeyUsageID EMAIL_PROTECTION
public static final ExtendedKeyUsageID TIME_STAMPING
public static final ExtendedKeyUsageID OCSP_SIGNING
public static ExtendedKeyUsageID[] values()
for (ExtendedKeyUsageID c : ExtendedKeyUsageID.values()) System.out.println(c);
public static ExtendedKeyUsageID valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NotNull public OID getOID()
@NotNull public java.lang.String getName()
@Nullable public static ExtendedKeyUsageID forOID(@NotNull OID oid)
oid
- The OID of the extended key usage ID value to retrieve. It
must not be null
.null
if there is no value with the specified OID.@NotNull public static java.lang.String getNameOrOID(@NotNull OID oid)
oid
- The OID for the extended key usage ID to retrieve.@Nullable public static ExtendedKeyUsageID forName(@NotNull java.lang.String name)
name
- The name of the extended key usage ID to retrieve. It must
not be null
.null
if no such ID
is defined.