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
-
AFFILIATION_CHANGED
-
-
CA_COMPROMISE
-
-
CERTIFICATE_HOLD
-
-
CESSATION_OF_OPERATION
-
-
KEY_COMPROMISE
-
-
NAME
- Attribute names.
-
REASON
-
-
REMOVE_FROM_CRL
-
-
SUPERSEDED
-
-
UNSPECIFIED
- Canned instances for all revocation reasons
-
CRLReasonExtension()
- Default constructor
-
CRLReasonExtension(Boolean, Object)
- Create the object from the passed DER encoded value.
-
CRLReasonExtension(RevocationReason)
- Create extension value for specific revocation reason
-
decode(InputStream)
- Decode the extension from the InputStream.
-
delete(String)
- Delete the attribute value.
-
encode(OutputStream)
- Write the extension to the DerOutputStream.
-
equals(Object)
-
-
get(String)
- Get the attribute value.
-
getElements()
- Return an enumeration of names of attributes existing within this
attribute.
-
getName()
- Return the name of this attribute.
-
getReason()
-
-
set(String, Object)
- Set the attribute value.
-
toString()
- Returns a printable representation of the ReasonFlags.
UNSPECIFIED
public static final CRLReasonExtension UNSPECIFIED
- Canned instances for all revocation reasons
KEY_COMPROMISE
public static final CRLReasonExtension KEY_COMPROMISE
CA_COMPROMISE
public static final CRLReasonExtension CA_COMPROMISE
AFFILIATION_CHANGED
public static final CRLReasonExtension AFFILIATION_CHANGED
SUPERSEDED
public static final CRLReasonExtension SUPERSEDED
CESSATION_OF_OPERATION
public static final CRLReasonExtension CESSATION_OF_OPERATION
CERTIFICATE_HOLD
public static final CRLReasonExtension CERTIFICATE_HOLD
REMOVE_FROM_CRL
public static final CRLReasonExtension REMOVE_FROM_CRL
NAME
public static final String NAME
- Attribute names.
REASON
public static final String REASON
CRLReasonExtension
public CRLReasonExtension()
- Default constructor
CRLReasonExtension
public CRLReasonExtension(RevocationReason reason)
- Create extension value for specific revocation reason
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.
getReason
public RevocationReason getReason()
set
public void set(String name,
Object obj) throws IOException
- Set the attribute value.
get
public Object get(String name) throws IOException
- Get the attribute value.
delete
public void delete(String name) throws IOException
- Delete the attribute value.
toString
public String toString()
- Returns a printable representation of the ReasonFlags.
- Overrides:
- toString in class Extension
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.
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.
getElements
public Enumeration getElements()
- Return an enumeration of names of attributes existing within this
attribute.
getName
public String getName()
- Return the name of this attribute.
equals
public boolean equals(Object other)
All Packages Class Hierarchy This Package Previous Next Index