public interface X509Extensions
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_CONSTRAINTS_OID
OID of KeyUsage.
|
static String |
EXTENDED_KEY_USAGE_OID
OID of ExtendedKeyUsage.
|
static String |
ISSUER_ALT_NAME_OID
OID of IssuerAltName.
|
static String |
KEY_USAGE_OID
OID of KeyUsage.
|
static String |
SUBJECT_ALT_NAME_OID
OID of IssuerAltName.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAuthorityKeyIdentifier() |
int |
getBasicConstraintsPathLen() |
String[] |
getCriticalExtensionOID() |
byte[] |
getEncoded() |
ExtendedKeyUsages |
getExtendedKeyUsage() |
String[] |
getExtensionOID() |
byte[] |
getExtensionValue(String oid)
Gets the DER-encoded OCTET string for the extension value (extnValue) identified by the passed-in oid String.
|
List<X509GeneralName> |
getIssuerAltName() |
EnumSet<KeyUsage> |
getKeyUsage() |
String[] |
getNonCriticalExtensionOID() |
List<X509GeneralName> |
getSubjectAltName() |
byte[] |
getSubjectKeyIdentifier() |
boolean |
hasCertificateAuthorityBasicConstraints() |
boolean |
isCritical(String oid)
Return true if the given oid has a critical extension.
|
static final String BASIC_CONSTRAINTS_OID
static final String KEY_USAGE_OID
static final String EXTENDED_KEY_USAGE_OID
static final String SUBJECT_ALT_NAME_OID
static final String ISSUER_ALT_NAME_OID
byte[] getExtensionValue(String oid)
oid
- the oid to retrieve.boolean isCritical(String oid)
oid
- the oid to check.String[] getExtensionOID()
String[] getCriticalExtensionOID()
String[] getNonCriticalExtensionOID()
byte[] getEncoded() throws IOException
IOException
- on encoding error.boolean hasCertificateAuthorityBasicConstraints()
int getBasicConstraintsPathLen()
EnumSet<KeyUsage> getKeyUsage()
ExtendedKeyUsages getExtendedKeyUsage()
byte[] getAuthorityKeyIdentifier()
byte[] getSubjectKeyIdentifier()
List<X509GeneralName> getSubjectAltName()
List<X509GeneralName> getIssuerAltName()
Copyright © 2004–2021 XWiki. All rights reserved.