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:
java.io.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:ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId KeyPurposeId ::= OBJECT IDENTIFIER
- See Also:
ExtendedKeyUsageID
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static OID
EXTENDED_KEY_USAGE_OID
The OID (2.5.29.37) for extended key usage extensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtensionName()
Retrieves the name for this extension.java.util.Set<OID>
getKeyPurposeIDs()
Retrieves the OIDs of the key purpose values contained in this extension.void
toString(java.lang.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 Detail
-
EXTENDED_KEY_USAGE_OID
@NotNull public static final OID EXTENDED_KEY_USAGE_OID
The OID (2.5.29.37) for extended key usage extensions.
-
-
Method Detail
-
getKeyPurposeIDs
@NotNull public java.util.Set<OID> 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 theExtendedKeyUsageID
enumeration.- Returns:
- The OIDs of the key purpose values contained in this extension.
-
getExtensionName
@NotNull public java.lang.String getExtensionName()
Retrieves the name for this extension.- Overrides:
getExtensionName
in classX509CertificateExtension
- Returns:
- The name for this extension.
-
toString
public void toString(@NotNull java.lang.StringBuilder buffer)
Appends a string representation of this certificate extension to the provided buffer.- Overrides:
toString
in classX509CertificateExtension
- Parameters:
buffer
- The buffer to which the information should be appended.
-
-