All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.CRLReasonExtension

netscape.security.x509.Extension
   |
   +----netscape.security.x509.CRLReasonExtension

public final class CRLReasonExtension
extends Extension
implements CertAttrSet
Represent the CRLReason Extension of CRL entry.

This extension, if present, defines the identifies the reason for the certificate revocation.

See Also:
Extension, CertAttrSet

Variable Index

 o AFFILIATION_CHANGED
 o CA_COMPROMISE
 o CERTIFICATE_HOLD
 o CESSATION_OF_OPERATION
 o KEY_COMPROMISE
 o NAME
Attribute names.
 o REASON
 o REMOVE_FROM_CRL
 o SUPERSEDED
 o UNSPECIFIED
Canned instances for all revocation reasons

Constructor Index

 o CRLReasonExtension()
Default constructor
 o CRLReasonExtension(Boolean, Object)
Create the object from the passed DER encoded value.
 o CRLReasonExtension(RevocationReason)
Create extension value for specific revocation reason

Method Index

 o decode(InputStream)
Decode the extension from the InputStream.
 o delete(String)
Delete the attribute value.
 o encode(OutputStream)
Write the extension to the DerOutputStream.
 o equals(Object)
 o get(String)
Get the attribute value.
 o getElements()
Return an enumeration of names of attributes existing within this attribute.
 o getName()
Return the name of this attribute.
 o getReason()
 o set(String, Object)
Set the attribute value.
 o toString()
Returns a printable representation of the ReasonFlags.

Variables

 o UNSPECIFIED
 public static final CRLReasonExtension UNSPECIFIED
Canned instances for all revocation reasons

 o KEY_COMPROMISE
 public static final CRLReasonExtension KEY_COMPROMISE
 o CA_COMPROMISE
 public static final CRLReasonExtension CA_COMPROMISE
 o AFFILIATION_CHANGED
 public static final CRLReasonExtension AFFILIATION_CHANGED
 o SUPERSEDED
 public static final CRLReasonExtension SUPERSEDED
 o CESSATION_OF_OPERATION
 public static final CRLReasonExtension CESSATION_OF_OPERATION
 o CERTIFICATE_HOLD
 public static final CRLReasonExtension CERTIFICATE_HOLD
 o REMOVE_FROM_CRL
 public static final CRLReasonExtension REMOVE_FROM_CRL
 o NAME
 public static final String NAME
Attribute names.

 o REASON
 public static final String REASON

Constructors

 o CRLReasonExtension
 public CRLReasonExtension()
Default constructor

 o CRLReasonExtension
 public CRLReasonExtension(RevocationReason reason)
Create extension value for specific revocation reason

 o CRLReasonExtension
 public CRLReasonExtension(Boolean critical,
                           Object value) throws IOException
Create the object from the passed DER encoded value.

Parameters:
derVal - the DerValue decoded from the stream.
Throws: IOException
on decoding errors.

Methods

 o getReason
 public RevocationReason getReason()
 o set
 public void set(String name,
                 Object obj) throws IOException
Set the attribute value.

 o get
 public Object get(String name) throws IOException
Get the attribute value.

 o delete
 public void delete(String name) throws IOException
Delete the attribute value.

 o toString
 public String toString()
Returns a printable representation of the ReasonFlags.

Overrides:
toString in class Extension
 o decode
 public void decode(InputStream in) throws IOException
Decode the extension from the InputStream.

Parameters:
in - the InputStream to unmarshal the contents from.
Throws: IOException
on decoding or validity errors.
 o encode
 public void encode(OutputStream out) throws IOException
Write the extension to the DerOutputStream.

Parameters:
out - the OutputStream to write the extension to.
Throws: IOException
on encoding errors.
 o getElements
 public Enumeration getElements()
Return an enumeration of names of attributes existing within this attribute.

 o getName
 public String getName()
Return the name of this attribute.

 o equals
 public boolean equals(Object other)

All Packages  Class Hierarchy  This Package  Previous  Next  Index