public class ReasonFlags
extends java.lang.Object
This extension, if present, defines the identifies the reason for the certificate revocation.
Extension
,
CertAttrSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AA_COMPROMISE |
static java.lang.String |
AFFLIATION_CHANGED |
static java.lang.String |
CA_COMPROMISE |
static java.lang.String |
CERTIFICATION_HOLD |
static java.lang.String |
CESSATION_OF_OPERATION |
static java.lang.String |
KEY_COMPROMISE |
static java.lang.String |
PRIVILEGE_WITHDRAWN |
static java.lang.String |
SUPERSEDED |
static java.lang.String |
UNUSED
Reasons
|
Constructor and Description |
---|
ReasonFlags(BitArray reasons)
Create a ReasonFlags with the passed bit settings.
|
ReasonFlags(boolean[] reasons)
Create a ReasonFlags with the passed bit settings.
|
ReasonFlags(byte[] reasons)
Create a ReasonFlags with the passed bit settings.
|
ReasonFlags(DerInputStream in)
Create the object from the passed DER encoded value.
|
ReasonFlags(DerValue derVal)
Create the object from the passed DER encoded value.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String name)
Delete the attribute value.
|
void |
encode(DerOutputStream out)
Write the extension to the DerOutputStream.
|
java.lang.Object |
get(java.lang.String name)
Get the attribute value.
|
java.util.Enumeration<java.lang.String> |
getElements()
Return an enumeration of names of attributes existing within this
attribute.
|
void |
set(java.lang.String name,
java.lang.Object obj)
Set the attribute value.
|
java.lang.String |
toString()
Returns a printable representation of the ReasonFlags.
|
public static final java.lang.String UNUSED
public static final java.lang.String KEY_COMPROMISE
public static final java.lang.String CA_COMPROMISE
public static final java.lang.String AFFLIATION_CHANGED
public static final java.lang.String SUPERSEDED
public static final java.lang.String CESSATION_OF_OPERATION
public static final java.lang.String CERTIFICATION_HOLD
public static final java.lang.String PRIVILEGE_WITHDRAWN
public static final java.lang.String AA_COMPROMISE
public ReasonFlags(byte[] reasons)
reasons
- the bits to be set for the ReasonFlags.public ReasonFlags(boolean[] reasons)
reasons
- the bits to be set for the ReasonFlags.public ReasonFlags(BitArray reasons)
reasons
- the bits to be set for the ReasonFlags.public ReasonFlags(DerInputStream in) throws java.io.IOException
in
- the DerInputStream to read the ReasonFlags from.java.io.IOException
- on decoding errors.public ReasonFlags(DerValue derVal) throws java.io.IOException
derVal
- the DerValue decoded from the stream.java.io.IOException
- on decoding errors.public void set(java.lang.String name, java.lang.Object obj) throws java.io.IOException
java.io.IOException
public java.lang.Object get(java.lang.String name) throws java.io.IOException
java.io.IOException
public void delete(java.lang.String name) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void encode(DerOutputStream out) throws java.io.IOException
out
- the DerOutputStream to write the extension to.java.io.IOException
- on encoding errors.public java.util.Enumeration<java.lang.String> getElements()