public enum ExtensionType extends Enum<ExtensionType>
Enum Constant and Description |
---|
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.
|
SubjectDirectoryAttributes
SubjectDirectoryAttributes extension field.
|
SubjectKeyIdentifier
SubjectKeyIdentifier extension field.
|
Modifier and Type | Method and Description |
---|---|
static ExtensionType |
fromName(String name)
Gets the extension by name.
|
static ExtensionType |
fromOid(String oid)
Gets the extension by OID.
|
String |
getOid() |
boolean |
isCritical() |
static ExtensionType |
valueOf(String name)
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.
|
public static final ExtensionType AuthorityInformationAccess
public static final ExtensionType AuthorityKeyIdentifier
public static final ExtensionType BasicConstraints
public static final ExtensionType CertificatePolicies
public static final ExtensionType CRLDistributionPoints
public static final ExtensionType ExtendedKeyUsage
public static final ExtensionType IssuerAlternativeName
public static final ExtensionType KeyUsage
public static final ExtensionType NameConstraints
public static final ExtensionType PolicyConstraints
public static final ExtensionType PolicyMappings
public static final ExtensionType PrivateKeyUsagePeriod
public static final ExtensionType SubjectAlternativeName
public static final ExtensionType SubjectKeyIdentifier
public static final ExtensionType SubjectDirectoryAttributes
public static ExtensionType[] values()
for (ExtensionType c : ExtensionType.values()) System.out.println(c);
public static ExtensionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ExtensionType fromOid(String oid)
oid
- Extension OID value.IllegalArgumentException
- If no extension with given OID exists.public static ExtensionType fromName(String name)
name
- Case-sensitive X.509v3 extension name. The acceptable case of extension names is governed by
conventions in RFC 2459.IllegalArgumentException
- If no extension with given name exists.public boolean isCritical()
public String getOid()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.