@NotExtensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class X509CertificateExtension extends java.lang.Object implements java.io.Serializable
| Modifier | Constructor | Description |
|---|---|---|
|
X509CertificateExtension(OID oid,
boolean isCritical,
byte[] value) |
Creates a new X.509 certificate extension with the provided information.
|
protected |
X509CertificateExtension(X509CertificateExtension extension) |
Creates a new X.509 certificate extension that wraps the provided
extension.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getExtensionName() |
Retrieves the name for this extension.
|
OID |
getOID() |
Retrieves the OID for this extension.
|
byte[] |
getValue() |
Retrieves the value for this extension.
|
boolean |
isCritical() |
Indicates whether this extension is considered critical.
|
java.lang.String |
toString() |
Retrieves a string representation of this extension.
|
void |
toString(java.lang.StringBuilder buffer) |
Appends a string representation of this certificate extension to the
provided buffer.
|
protected X509CertificateExtension(@NotNull X509CertificateExtension extension)
extension - The extension to wrap.public X509CertificateExtension(@NotNull OID oid, boolean isCritical, @NotNull byte[] value)
oid - The OID for this extension.isCritical - Indicates whether this extension is considered
critical.value - The value for this extension.@NotNull public final OID getOID()
public final boolean isCritical()
true if this extension is considered critical, or
false if not.@NotNull public final byte[] getValue()
@NotNull public java.lang.String getExtensionName()
@NotNull public final java.lang.String toString()
toString in class java.lang.Object