Package eu.europa.esig.dss.enumerations
Enum ExtendedKeyUsage
- java.lang.Object
-
- java.lang.Enum<ExtendedKeyUsage>
-
- eu.europa.esig.dss.enumerations.ExtendedKeyUsage
-
- All Implemented Interfaces:
OidBasedEnum,OidDescription,Serializable,Comparable<ExtendedKeyUsage>
public enum ExtendedKeyUsage extends Enum<ExtendedKeyUsage> implements OidDescription
The KeyPurposeId object. KeyPurposeId ::= OBJECT IDENTIFIER id-kp ::= OBJECT IDENTIFIER { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) 3}
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_AUTHclientAuthCODE_SIGNINGcodeSigningEMAIL_PROTECTIONemailProtectionOCSP_SIGNINGocspSigningSERVER_AUTHserverAuthTIMESTAMPINGtimeStampingTSL_SIGNINGETSI TS 119 612 -- OID for TSL signing KeyPurposeID for ExtKeyUsageSyntax id-tsl OBJECT IDENTIFIER { itu-t(0) identified-organization(4) etsi(0) tsl-specification (2231) } id-tsl-kp OBJECT IDENTIFIER ::= { id-tsl kp(3) } id-tsl-kp-tslSigning OBJECT IDENTIFIER ::= { id-tsl-kp tsl-signing(0) }
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()This method returns the literal description of the OIDStringgetOid()This method returns the OID valuestatic ExtendedKeyUsagevalueOf(String name)Returns the enum constant of this type with the specified name.static ExtendedKeyUsage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER_AUTH
public static final ExtendedKeyUsage SERVER_AUTH
serverAuth
-
CLIENT_AUTH
public static final ExtendedKeyUsage CLIENT_AUTH
clientAuth
-
CODE_SIGNING
public static final ExtendedKeyUsage CODE_SIGNING
codeSigning
-
EMAIL_PROTECTION
public static final ExtendedKeyUsage EMAIL_PROTECTION
emailProtection
-
TIMESTAMPING
public static final ExtendedKeyUsage TIMESTAMPING
timeStamping
-
OCSP_SIGNING
public static final ExtendedKeyUsage OCSP_SIGNING
ocspSigning
-
TSL_SIGNING
public static final ExtendedKeyUsage TSL_SIGNING
ETSI TS 119 612 -- OID for TSL signing KeyPurposeID for ExtKeyUsageSyntax id-tsl OBJECT IDENTIFIER { itu-t(0) identified-organization(4) etsi(0) tsl-specification (2231) } id-tsl-kp OBJECT IDENTIFIER ::= { id-tsl kp(3) } id-tsl-kp-tslSigning OBJECT IDENTIFIER ::= { id-tsl-kp tsl-signing(0) }
-
-
Method Detail
-
values
public static ExtendedKeyUsage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExtendedKeyUsage c : ExtendedKeyUsage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExtendedKeyUsage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getOid
public String getOid()
Description copied from interface:OidBasedEnumThis method returns the OID value- Specified by:
getOidin interfaceOidBasedEnum- Returns:
- the OID value
-
getDescription
public String getDescription()
Description copied from interface:OidDescriptionThis method returns the literal description of the OID- Specified by:
getDescriptionin interfaceOidDescription- Returns:
- the OID description
-
-