Package com.unboundid.util.ssl.cert
Class X509CertificateExtension
java.lang.Object
com.unboundid.util.ssl.cert.X509CertificateExtension
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorityKeyIdentifierExtension,BasicConstraintsExtension,CRLDistributionPointsExtension,ExtendedKeyUsageExtension,GeneralAlternativeNameExtension,KeyUsageExtension,SubjectKeyIdentifierExtension
@NotExtensible
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public class X509CertificateExtension
extends Object
implements Serializable
This class represents a data structure that holds information about an X.509
certificate extension.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionX509CertificateExtension(OID oid, boolean isCritical, byte[] value) Creates a new X.509 certificate extension with the provided information.protectedX509CertificateExtension(X509CertificateExtension extension) Creates a new X.509 certificate extension that wraps the provided extension. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name for this extension.final OIDgetOID()Retrieves the OID for this extension.final byte[]getValue()Retrieves the value for this extension.final booleanIndicates whether this extension is considered critical.final StringtoString()Retrieves a string representation of this extension.voidtoString(StringBuilder buffer) Appends a string representation of this certificate extension to the provided buffer.
-
Constructor Details
-
X509CertificateExtension
Creates a new X.509 certificate extension that wraps the provided extension.- Parameters:
extension- The extension to wrap.
-
X509CertificateExtension
Creates a new X.509 certificate extension with the provided information.- Parameters:
oid- The OID for this extension.isCritical- Indicates whether this extension is considered critical.value- The value for this extension.
-
-
Method Details
-
getOID
Retrieves the OID for this extension.- Returns:
- The OID for this extension.
-
isCritical
Indicates whether this extension is considered critical.- Returns:
trueif this extension is considered critical, orfalseif not.
-
getValue
Retrieves the value for this extension.- Returns:
- The value for this extension.
-
getExtensionName
Retrieves the name for this extension.- Returns:
- The name for this extension.
-
toString
Retrieves a string representation of this extension. -
toString
Appends a string representation of this certificate extension to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-