Package com.unboundid.util.ssl.cert
Class ExtendedKeyUsageExtension
java.lang.Object
com.unboundid.util.ssl.cert.X509CertificateExtension
com.unboundid.util.ssl.cert.ExtendedKeyUsageExtension
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class ExtendedKeyUsageExtension
extends X509CertificateExtension
This class provides an implementation of the extended key usage X.509
certificate extension as described in
RFC 5280 section 4.2.1.12.
This can be used to provide an extensible list of OIDs that identify ways
that a certificate is intended to be used.
The OID for this extension is 2.5.29.37 and the value has the following encoding:
The OID for this extension is 2.5.29.37 and the value has the following encoding:
ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId KeyPurposeId ::= OBJECT IDENTIFIER
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OIDThe OID (2.5.29.37) for extended key usage extensions. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name for this extension.Retrieves the OIDs of the key purpose values contained in this extension.voidtoString(StringBuilder buffer) Appends a string representation of this certificate extension to the provided buffer.Methods inherited from class com.unboundid.util.ssl.cert.X509CertificateExtension
getOID, getValue, isCritical, toString
-
Field Details
-
EXTENDED_KEY_USAGE_OID
The OID (2.5.29.37) for extended key usage extensions.
-
-
Method Details
-
getKeyPurposeIDs
Retrieves the OIDs of the key purpose values contained in this extension. Some, all, or none of the OIDs contained in this extension may correspond to values in theExtendedKeyUsageIDenumeration.- Returns:
- The OIDs of the key purpose values contained in this extension.
-
getExtensionName
Retrieves the name for this extension.- Overrides:
getExtensionNamein classX509CertificateExtension- Returns:
- The name for this extension.
-
toString
Appends a string representation of this certificate extension to the provided buffer.- Overrides:
toStringin classX509CertificateExtension- Parameters:
buffer- The buffer to which the information should be appended.
-