Class CRLReasonExtension
java.lang.Object
org.mozilla.jss.netscape.security.x509.Extension
org.mozilla.jss.netscape.security.x509.CRLReasonExtension
- All Implemented Interfaces:
Serializable
,CertAttrSet
Represent the CRLReason Extension of CRL entry.
This extension, if present, defines the identifies the reason for the certificate revocation.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CRLReasonExtension
static final CRLReasonExtension
static final CRLReasonExtension
static final CRLReasonExtension
static final CRLReasonExtension
static final CRLReasonExtension
private RevocationReason
static final String
Attribute names.static final CRLReasonExtension
static final String
static final CRLReasonExtension
private static final long
static final CRLReasonExtension
static final CRLReasonExtension
Canned instances for all revocation reasonsFields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCRLReasonExtension
(Boolean critical, Object value) Create the object from the passed DER encoded value.CRLReasonExtension
(Boolean critical, RevocationReason reason) CRLReasonExtension
(RevocationReason reason) Create extension value for specific revocation reason -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream in) Decode the extension from the InputStream.void
Delete the attribute value.void
encode
(OutputStream out) Write the extension to the DerOutputStream.private void
boolean
Get the attribute value.Return an enumeration of names of attributes existing within this attribute.getName()
Return the name of this attribute.int
hashCode()
void
Set the attribute value.toString()
Returns a printable representation of the ReasonFlags.Methods inherited from class org.mozilla.jss.netscape.security.x509.Extension
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setCritical, setExtensionId, setExtensionValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
UNSPECIFIED
Canned instances for all revocation reasons -
KEY_COMPROMISE
-
CA_COMPROMISE
-
AFFILIATION_CHANGED
-
SUPERSEDED
-
CESSATION_OF_OPERATION
-
CERTIFICATE_HOLD
-
REMOVE_FROM_CRL
-
PRIVILEGE_WITHDRAWN
-
AA_COMPROMISE
-
NAME
Attribute names.- See Also:
-
REASON
- See Also:
-
mReason
-
-
Constructor Details
-
CRLReasonExtension
public CRLReasonExtension()Default constructor -
CRLReasonExtension
Create extension value for specific revocation reason -
CRLReasonExtension
- Throws:
IOException
-
CRLReasonExtension
Create the object from the passed DER encoded value.- Parameters:
value
- the DerValue decoded from the stream.- Throws:
IOException
- on decoding errors.
-
-
Method Details
-
getReason
-
set
Set the attribute value.- Specified by:
set
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.- Throws:
IOException
- on other errors.
-
get
Get the attribute value.- Specified by:
get
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to return.- Returns:
- attribute value
- Throws:
IOException
- on other errors.
-
delete
Delete the attribute value.- Specified by:
delete
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to delete.- Throws:
IOException
- on other errors.
-
toString
Returns a printable representation of the ReasonFlags.- Specified by:
toString
in interfaceCertAttrSet
- Overrides:
toString
in classExtension
- Returns:
- value of this certificate attribute in printable form.
-
decode
Decode the extension from the InputStream.- Specified by:
decode
in interfaceCertAttrSet
- Parameters:
in
- the InputStream to unmarshal the contents from.- Throws:
IOException
- on decoding or validity errors.
-
encodeThis
- Throws:
IOException
-
encode
Write the extension to the DerOutputStream.- Specified by:
encode
in interfaceCertAttrSet
- Parameters:
out
- the OutputStream to write the extension to.- Throws:
IOException
- on encoding errors.
-
getAttributeNames
Return an enumeration of names of attributes existing within this attribute.- Specified by:
getAttributeNames
in interfaceCertAttrSet
- Returns:
- an enumeration of the attribute names.
-
getName
Return the name of this attribute.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-
equals
-
hashCode
public int hashCode()
-