Package org.cryptacular.x509
Enum ExtensionType
- All Implemented Interfaces:
Serializable
,Comparable<ExtensionType>
,java.lang.constant.Constable
Enumeration of X.509v3 extension fields defined in section 4.2 of RFC 2459.
- Version:
- $Revision: 2745 $
- Author:
- Middleware Services
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAuthorityInfoAccess extension field.AuthorityKeyIdentifier extension field.BasicConstraints extension field.CertificatePolicies extension field.CRLDistributionPoints extension field.ExtendedKeyUsage extension field.IssuerAlternativeName extension field.KeyUsage extension field.NameConstraints extension field.PolicyConstraints extension field.PolicyMappings extension field.PrivateKeyUsage extension field.SubjectAlternativeName extension field.SubjectDirectoryAttributes extension field.SubjectKeyIdentifier extension field. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionType
Gets the extension by name.static ExtensionType
Gets the extension by OID.getOid()
boolean
static ExtensionType
Returns the enum constant of this type with the specified name.static ExtensionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AuthorityInformationAccess
AuthorityInfoAccess extension field. -
AuthorityKeyIdentifier
AuthorityKeyIdentifier extension field. -
BasicConstraints
BasicConstraints extension field. -
CertificatePolicies
CertificatePolicies extension field. -
CRLDistributionPoints
CRLDistributionPoints extension field. -
ExtendedKeyUsage
ExtendedKeyUsage extension field. -
IssuerAlternativeName
IssuerAlternativeName extension field. -
KeyUsage
KeyUsage extension field. -
NameConstraints
NameConstraints extension field. -
PolicyConstraints
PolicyConstraints extension field. -
PolicyMappings
PolicyMappings extension field. -
PrivateKeyUsagePeriod
PrivateKeyUsage extension field. -
SubjectAlternativeName
SubjectAlternativeName extension field. -
SubjectKeyIdentifier
SubjectKeyIdentifier extension field. -
SubjectDirectoryAttributes
SubjectDirectoryAttributes extension field.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
fromOid
Gets the extension by OID.- Parameters:
oid
- Extension OID value.- Returns:
- Extension with given OID value.
- Throws:
IllegalArgumentException
- If no extension with given OID exists.
-
fromName
Gets the extension by name.- Parameters:
name
- Case-sensitive X.509v3 extension name. The acceptable case of extension names is governed by conventions in RFC 2459.- Returns:
- Extension with given name.
- Throws:
IllegalArgumentException
- If no extension with given name exists.
-
isCritical
public boolean isCritical()- Returns:
- True if extension MUST or SHOULD be marked critical under general circumstances according to RFC 2459, false otherwise.
-
getOid
- Returns:
- OID value of extension field.
-