Package netscape.security.x509
Class FreshestCRLExtension.Reason
- java.lang.Object
-
- netscape.security.x509.FreshestCRLExtension.Reason
-
- Enclosing class:
- FreshestCRLExtension
public static class FreshestCRLExtension.Reason extends java.lang.Object
Represents a reason that a cert may be revoked. These reasons are expressed in a ReasonFlags bit string.
-
-
Field Summary
Fields Modifier and Type Field Description static FreshestCRLExtension.Reason
AFFILIATION_CHANGED
static FreshestCRLExtension.Reason
CA_COMPROMISE
static FreshestCRLExtension.Reason
CERTIFICATE_HOLD
static FreshestCRLExtension.Reason
CESSATION_OF_OPERATION
static FreshestCRLExtension.Reason
KEY_COMPROMISE
static FreshestCRLExtension.Reason
SUPERSEDED
static FreshestCRLExtension.Reason
UNUSED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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[]
bitArrayToReasonArray(byte[] bitFlags)
Given a bit array representing reason flags, extracts the reasons and returns them as an array.static FreshestCRLExtension.Reason
fromString(java.lang.String name)
byte
getBitMask()
java.lang.String
getName()
-
-
-
Field Detail
-
UNUSED
public static final FreshestCRLExtension.Reason UNUSED
-
KEY_COMPROMISE
public static final FreshestCRLExtension.Reason KEY_COMPROMISE
-
CA_COMPROMISE
public static final FreshestCRLExtension.Reason CA_COMPROMISE
-
AFFILIATION_CHANGED
public static final FreshestCRLExtension.Reason AFFILIATION_CHANGED
-
SUPERSEDED
public static final FreshestCRLExtension.Reason SUPERSEDED
-
CESSATION_OF_OPERATION
public static final FreshestCRLExtension.Reason CESSATION_OF_OPERATION
-
CERTIFICATE_HOLD
public static final FreshestCRLExtension.Reason CERTIFICATE_HOLD
-
-
Method Detail
-
fromString
public static FreshestCRLExtension.Reason fromString(java.lang.String name)
-
getName
public java.lang.String getName()
-
getBitMask
public byte getBitMask()
-
bitArrayToReasonArray
public static FreshestCRLExtension.Reason[] bitArrayToReasonArray(byte bitFlags)
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
public static FreshestCRLExtension.Reason[] bitArrayToReasonArray(byte[] bitFlags)
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.
-
-