public class

CertificateIssuerExtension

extends Extension
implements CertAttrSet<T>
java.lang.Object
   ↳ sun.security.x509.Extension
     ↳ sun.security.x509.CertificateIssuerExtension

Class Overview

Represents the CRL Certificate Issuer Extension (OID = 2.5.29.29).

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
 

Summary

Constants
String ISSUER
String NAME Attribute names.
[Expand]
Inherited Fields
From class sun.security.x509.Extension
Public Constructors
CertificateIssuerExtension(GeneralNames issuer)
Create a CertificateIssuerExtension containing the specified issuer name.
CertificateIssuerExtension(Boolean critical, Object value)
Create a CertificateIssuerExtension from the specified DER encoded value of the same.
Public Methods
void delete(String name)
Deletes the attribute value.
void encode(OutputStream out)
Write the extension to the OutputStream.
Object get(String name)
Gets the attribute value.
Enumeration<String> getElements()
Return an enumeration of names of attributes existing within this attribute.
String getName()
Return the name of this attribute.
void set(String name, Object obj)
Set the attribute value.
String toString()
Returns a printable representation of the certificate issuer.
[Expand]
Inherited Methods
From class sun.security.x509.Extension
From class java.lang.Object
From interface sun.security.x509.CertAttrSet

Constants

public static final String ISSUER

Constant Value: "issuer"

public static final String NAME

Attribute names.

Constant Value: "CertificateIssuer"

Public Constructors

public CertificateIssuerExtension (GeneralNames issuer)

Create a CertificateIssuerExtension containing the specified issuer name. Criticality is automatically set to true.

Parameters
issuer the certificate issuer
Throws
IOException on error

public CertificateIssuerExtension (Boolean critical, Object value)

Create a CertificateIssuerExtension from the specified DER encoded value of the same.

Parameters
critical true if the extension is to be treated as critical.
value an array of DER encoded bytes of the actual value
Throws
ClassCastException if value is not an array of bytes
IOException on error

Public Methods

public void delete (String name)

Deletes the attribute value.

Parameters
name the name of the attribute to delete.
Throws
IOException on error

public void encode (OutputStream out)

Write the extension to the OutputStream.

Parameters
out the OutputStream to write the extension to
Throws
IOException on encoding errors

public Object get (String name)

Gets the attribute value.

Parameters
name the name of the attribute to return.
Throws
IOException on error

public Enumeration<String> getElements ()

Return an enumeration of names of attributes existing within this attribute.

Returns
  • an enumeration of the attribute names.

public String getName ()

Return the name of this attribute.

Returns
  • the name of this CertAttrSet.

public void set (String name, Object obj)

Set the attribute value.

Parameters
name the name of the attribute (e.g. "x509.info.key")
obj the attribute object.
Throws
IOException on error

public String toString ()

Returns a printable representation of the certificate issuer.

Returns
  • a string representation of the object.