public class CertificateIssuerExtension extends Extension implements CertAttrSet<java.lang.String>
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 3280) RECOMMENDS that implementations recognize this extension.
The ASN.1 definition for this is:
id-ce-certificateIssuer OBJECT IDENTIFIER ::= { id-ce 29 }
certificateIssuer ::= GeneralNames
Extension,
CertAttrSet| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ISSUER |
static java.lang.String |
NAME
Attribute names.
|
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 |
delete(java.lang.String name)
Deletes the attribute value.
|
void |
encode(java.io.OutputStream out)
Write the extension to the OutputStream.
|
java.lang.Object |
get(java.lang.String name)
Gets the attribute value.
|
java.util.Enumeration<java.lang.String> |
getElements()
Return an enumeration of names of attributes existing within this
attribute.
|
java.lang.String |
getName()
Return the name of this attribute.
|
void |
set(java.lang.String name,
java.lang.Object obj)
Set the attribute value.
|
java.lang.String |
toString()
Returns a printable representation of the certificate issuer.
|
encode, equals, getExtensionId, getExtensionValue, hashCode, isCriticalpublic static final java.lang.String NAME
public static final java.lang.String ISSUER
public CertificateIssuerExtension(GeneralNames issuer) throws java.io.IOException
issuer - the certificate issuerjava.io.IOException - on errorpublic 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 void set(java.lang.String name,
java.lang.Object obj)
throws java.io.IOException
set in interface CertAttrSet<java.lang.String>name - the name of the attribute (e.g. "x509.info.key")obj - the attribute object.java.io.IOException - on errorpublic java.lang.Object get(java.lang.String name)
throws java.io.IOException
get in interface CertAttrSet<java.lang.String>name - the name of the attribute to return.java.io.IOException - on errorpublic void delete(java.lang.String name)
throws java.io.IOException
delete in interface CertAttrSet<java.lang.String>name - the name of the attribute to delete.java.io.IOException - on errorpublic java.lang.String toString()
toString in interface CertAttrSet<java.lang.String>toString in class Extensionpublic void encode(java.io.OutputStream out)
throws java.io.IOException
encode in interface CertAttrSet<java.lang.String>out - the OutputStream to write the extension tojava.io.IOException - on encoding errorspublic java.util.Enumeration<java.lang.String> getElements()
getElements in interface CertAttrSet<java.lang.String>public java.lang.String getName()
getName in interface CertAttrSet<java.lang.String>Copyright © 2020. All Rights Reserved.