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 CRLReasonExtensionstatic final CRLReasonExtensionstatic final CRLReasonExtensionstatic final CRLReasonExtensionstatic final CRLReasonExtensionstatic final CRLReasonExtensionprivate RevocationReasonstatic final StringAttribute names.static final CRLReasonExtensionstatic final Stringstatic final CRLReasonExtensionprivate static final longstatic final CRLReasonExtensionstatic final CRLReasonExtensionCanned 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 TypeMethodDescriptionvoiddecode(InputStream in) Decode the extension from the InputStream.voidDelete the attribute value.voidencode(OutputStream out) Write the extension to the DerOutputStream.private voidbooleanGet the attribute value.Return an enumeration of names of attributes existing within this attribute.getName()Return the name of this attribute.inthashCode()voidSet 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:
setin 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:
getin 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:
deletein 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:
toStringin interfaceCertAttrSet- Overrides:
toStringin classExtension- Returns:
- value of this certificate attribute in printable form.
-
decode
Decode the extension from the InputStream.- Specified by:
decodein 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:
encodein 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:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an enumeration of the attribute names.
-
getName
Return the name of this attribute.- Specified by:
getNamein interfaceCertAttrSet- Returns:
- the name of this CertAttrSet.
-
equals
-
hashCode
public int hashCode()
-