Class FreshestCRLExtension.Reason
java.lang.Object
org.mozilla.jss.netscape.security.x509.FreshestCRLExtension.Reason
- Enclosing class:
FreshestCRLExtension
Represents a reason that a cert may be revoked. These reasons are
expressed in a ReasonFlags bit string.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FreshestCRLExtension.Reason
private byte
static final FreshestCRLExtension.Reason
static final FreshestCRLExtension.Reason
static final FreshestCRLExtension.Reason
static final FreshestCRLExtension.Reason
private static Vector
<FreshestCRLExtension.Reason> private static Hashtable
<String, FreshestCRLExtension.Reason> private String
static final FreshestCRLExtension.Reason
static final FreshestCRLExtension.Reason
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FreshestCRLExtension.Reason[]
bitArrayToReasonArray
(byte bitFlags) Given a bit array representing reason flags, extracts the reasons and returns them as an array.static FreshestCRLExtension.Reason[]
bitArrayToReasonArray
(byte[] bitFlags) Given a bit array representing reason flags, extracts the reasons and returns them as an array.static FreshestCRLExtension.Reason
fromString
(String name) byte
getName()
-
Field Details
-
name
-
bitMask
private byte bitMask -
map
-
list
-
UNUSED
-
KEY_COMPROMISE
-
CA_COMPROMISE
-
AFFILIATION_CHANGED
-
SUPERSEDED
-
CESSATION_OF_OPERATION
-
CERTIFICATE_HOLD
-
-
Constructor Details
-
Reason
private Reason() -
Reason
-
-
Method Details
-
fromString
-
getName
-
getBitMask
public byte getBitMask() -
bitArrayToReasonArray
Given a bit array representing reason flags, extracts the reasons and returns them as an array.- Parameters:
bitFlags
- A bit vector containing reason flags.- Returns:
- An array of reasons contained in the bit vector. May be zero-length but will not be null.
-
bitArrayToReasonArray
Given a bit array representing reason flags, extracts the reasons and returns them as an array. Currently, only the first byte of the bitflags are examined.- Parameters:
bitFlags
- A bit vector containing reason flags. The format is big-endian (MSB first). Only the first byte is examined.- Returns:
- An array of reasons contained in the bit vector. May be zero-length but will not be null.
-