Class ReasonFlags
java.lang.Object
org.mozilla.jss.netscape.security.x509.ReasonFlags
Represent the CRL Reason Flags.
This extension, if present, defines the identifies the reason for the certificate revocation.
- Version:
- 1.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReasonFlags
(boolean[] reasons) Create a ReasonFlags with the passed bit settings.ReasonFlags
(byte[] reasons) Create a ReasonFlags with the passed bit settings.ReasonFlags
(BitArray reasons) Create a ReasonFlags with the passed bit settings.Create the object from the passed DER encoded value.ReasonFlags
(DerValue derVal) Create the object from the passed DER encoded value. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete the attribute value.void
encode
(DerOutputStream out) Write the extension to the DerOutputStream.Get the attribute value.Return an enumeration of names of attributes existing within this attribute.private boolean
isSet
(int position) Check if bit is set.private void
set
(int position, boolean val) Set the bit at the specified position.void
Set the attribute value.toString()
Returns a printable representation of the ReasonFlags.
-
Field Details
-
UNUSED
Reasons- See Also:
-
KEY_COMPROMISE
- See Also:
-
CA_COMPROMISE
- See Also:
-
AFFLIATION_CHANGED
- See Also:
-
SUPERSEDED
- See Also:
-
CESSATION_OF_OPERATION
- See Also:
-
CERTIFICATION_HOLD
- See Also:
-
PRIVILEGE_WITHDRAWN
- See Also:
-
AA_COMPROMISE
- See Also:
-
bitString
private boolean[] bitString
-
-
Constructor Details
-
ReasonFlags
public ReasonFlags(byte[] reasons) Create a ReasonFlags with the passed bit settings.- Parameters:
reasons
- the bits to be set for the ReasonFlags.
-
ReasonFlags
public ReasonFlags(boolean[] reasons) Create a ReasonFlags with the passed bit settings.- Parameters:
reasons
- the bits to be set for the ReasonFlags.
-
ReasonFlags
Create a ReasonFlags with the passed bit settings.- Parameters:
reasons
- the bits to be set for the ReasonFlags.
-
ReasonFlags
Create the object from the passed DER encoded value.- Parameters:
in
- the DerInputStream to read the ReasonFlags from.- Throws:
IOException
- on decoding errors.
-
ReasonFlags
Create the object from the passed DER encoded value.- Parameters:
derVal
- the DerValue decoded from the stream.- Throws:
IOException
- on decoding errors.
-
-
Method Details
-
isSet
private boolean isSet(int position) Check if bit is set.- Parameters:
position
- the position in the bit string to check.
-
set
private void set(int position, boolean val) Set the bit at the specified position. -
set
Set the attribute value.- Throws:
IOException
-
get
Get the attribute value.- Throws:
IOException
-
delete
Delete the attribute value.- Throws:
IOException
-
toString
Returns a printable representation of the ReasonFlags. -
encode
Write the extension to the DerOutputStream.- Parameters:
out
- the DerOutputStream to write the extension to.- Throws:
IOException
- on encoding errors.
-
getElements
Return an enumeration of names of attributes existing within this attribute.
-