public class CertificateIssuerExtension extends Extension
The CRL certificate issuer extension identifies the certificate issuer associated with an entry in an indirect CRL, i.e. a CRL that has the indirectCRL indicator set in its issuing distribution point extension. If this extension is not present on the first entry in an indirect CRL, the certificate issuer defaults to the CRL issuer. On subsequent entries in an indirect CRL, if this extension is not present, the certificate issuer for the entry is the same as that for the preceding entry.
If used by conforming CRL issuers, this extension is always critical. If an implementation ignored this extension it could not correctly attribute CRL entries to certificates. PKIX (RFC 5280) RECOMMENDS that implementations recognize this extension.
The ASN.1 definition for this is:
id-ce-certificateIssuer OBJECT IDENTIFIER ::= { id-ce 29 }
certificateIssuer ::= GeneralNames
Extension| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
critical, extensionId, extensionValue| Constructor and Description |
|---|
CertificateIssuerExtension(java.lang.Boolean critical,
java.lang.Object value)
Create a CertificateIssuerExtension from the specified DER encoded
value of the same.
|
CertificateIssuerExtension(GeneralNames issuer)
Create a CertificateIssuerExtension containing the specified issuer name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the extension to the OutputStream.
|
java.lang.String |
getName()
Return the name of this extension.
|
GeneralNames |
getNames() |
java.lang.String |
toString()
Returns a printable representation of the certificate issuer.
|
encode, equals, getExtensionId, getExtensionValue, getId, getValue, hashCode, isCritical, newExtensionpublic static final java.lang.String NAME
public CertificateIssuerExtension(GeneralNames issuer)
issuer - the certificate issuer, cannot be null or empty.public CertificateIssuerExtension(java.lang.Boolean critical,
java.lang.Object value)
throws java.io.IOException
critical - true if the extension is to be treated as critical.value - an array of DER encoded bytes of the actual valuejava.lang.ClassCastException - if value is not an array of bytesjava.io.IOException - on errorpublic GeneralNames getNames()
public java.lang.String toString()
public void encode(com.tencent.kona.sun.security.util.DerOutputStream out)