public class ReasonFlags
extends java.lang.Object
implements com.tencent.kona.sun.security.util.DerEncoder
This extension, if present, defines the identifies the reason for the certificate revocation.
The ASN.1 syntax for this is:
ReasonFlags ::= BIT STRING {
unused (0),
keyCompromise (1),
cACompromise (2),
affiliationChanged (3),
superseded (4),
cessationOfOperation (5),
certificateHold (6),
privilegeWithdrawn (7),
aACompromise (8) }
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AA_COMPROMISE |
static java.lang.String |
AFFILIATION_CHANGED |
static java.lang.String |
CA_COMPROMISE |
static java.lang.String |
CERTIFICATE_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(com.tencent.kona.sun.security.util.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(com.tencent.kona.sun.security.util.DerInputStream in)
Create the object from the passed DER encoded value.
|
ReasonFlags(com.tencent.kona.sun.security.util.DerValue derVal)
Create the object from the passed DER encoded value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the extension to the DerOutputStream.
|
java.lang.Object |
get(java.lang.String name)
Get the attribute value.
|
boolean[] |
getFlags()
Returns the reason flags as a boolean array.
|
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 AFFILIATION_CHANGED
public static final java.lang.String SUPERSEDED
public static final java.lang.String CESSATION_OF_OPERATION
public static final java.lang.String CERTIFICATE_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(com.tencent.kona.sun.security.util.BitArray reasons)
reasons - the bits to be set for the ReasonFlags.public ReasonFlags(com.tencent.kona.sun.security.util.DerInputStream in)
throws java.io.IOException
in - the DerInputStream to read the ReasonFlags from.java.io.IOException - on decoding errors.public ReasonFlags(com.tencent.kona.sun.security.util.DerValue derVal)
throws java.io.IOException
derVal - the DerValue decoded from the stream.java.io.IOException - on decoding errors.public boolean[] getFlags()
public void set(java.lang.String name,
java.lang.Object obj)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object get(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
encode in interface com.tencent.kona.sun.security.util.DerEncoderout - the DerOutputStream to write the extension to.