org.bouncycastle.asn1.x509

Class ReasonFlags

Implemented Interfaces:
DEREncodable, DERString, DERTags

public class ReasonFlags
extends DERBitString

The ReasonFlags object.
 ReasonFlags ::= BIT STRING {
      unused                  (0),
      keyCompromise           (1),
      cACompromise            (2),
      affiliationChanged      (3),
      superseded              (4),
      cessationOfOperation    (5),
      certificateHold         (6),
      privilegeWithdrawn      (7),
      aACompromise            (8) }
 

Field Summary

static int
AA_COMPROMISE
Deprecated. use lower case version
static int
AFFILIATION_CHANGED
Deprecated. use lower case version
static int
CA_COMPROMISE
Deprecated. use lower case version
static int
CERTIFICATE_HOLD
Deprecated. use lower case version
static int
CESSATION_OF_OPERATION
Deprecated. use lower case version
static int
KEY_COMPROMISE
Deprecated. use lower case version
static int
PRIVILEGE_WITHDRAWN
Deprecated. use lower case version
static int
SUPERSEDED
Deprecated. use lower case version
static int
UNUSED
Deprecated. use lower case version
static int
aACompromise
static int
affiliationChanged
static int
cACompromise
static int
certificateHold
static int
cessationOfOperation
static int
keyCompromise
static int
privilegeWithdrawn
static int
superseded
static int
unused

Fields inherited from class org.bouncycastle.asn1.DERBitString

data, padBits

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Fields inherited from interface org.bouncycastle.asn1.DERTags

APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERALIZED_TIME, GENERAL_STRING, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING

Constructor Summary

ReasonFlags(int reasons)
ReasonFlags(DERBitString reasons)

Method Summary

Methods inherited from class org.bouncycastle.asn1.DERBitString

asn1Equals, getBytes, getBytes, getInstance, getInstance, getPadBits, getPadBits, getString, hashCode, intValue, toString

Methods inherited from class org.bouncycastle.asn1.ASN1Object

equals, fromByteArray, hashCode

Methods inherited from class org.bouncycastle.asn1.DERObject

equals, hashCode, toASN1Object

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Field Details

AA_COMPROMISE

public static final int AA_COMPROMISE

Deprecated. use lower case version

Field Value:
32768

AFFILIATION_CHANGED

public static final int AFFILIATION_CHANGED

Deprecated. use lower case version

Field Value:
16

CA_COMPROMISE

public static final int CA_COMPROMISE

Deprecated. use lower case version

Field Value:
32

CERTIFICATE_HOLD

public static final int CERTIFICATE_HOLD

Deprecated. use lower case version

Field Value:
2

CESSATION_OF_OPERATION

public static final int CESSATION_OF_OPERATION

Deprecated. use lower case version

Field Value:
4

KEY_COMPROMISE

public static final int KEY_COMPROMISE

Deprecated. use lower case version

Field Value:
64

PRIVILEGE_WITHDRAWN

public static final int PRIVILEGE_WITHDRAWN

Deprecated. use lower case version

Field Value:
1

SUPERSEDED

public static final int SUPERSEDED

Deprecated. use lower case version

Field Value:
8

UNUSED

public static final int UNUSED

Deprecated. use lower case version

Field Value:
128

aACompromise

public static final int aACompromise
Field Value:
32768

affiliationChanged

public static final int affiliationChanged
Field Value:
16

cACompromise

public static final int cACompromise
Field Value:
32

certificateHold

public static final int certificateHold
Field Value:
2

cessationOfOperation

public static final int cessationOfOperation
Field Value:
4

keyCompromise

public static final int keyCompromise
Field Value:
64

privilegeWithdrawn

public static final int privilegeWithdrawn
Field Value:
1

superseded

public static final int superseded
Field Value:
8

unused

public static final int unused
Field Value:
128

Constructor Details

ReasonFlags

public ReasonFlags(int reasons)
Parameters:
reasons - - the bitwise OR of the Key Reason flags giving the allowed uses for the key.

ReasonFlags

public ReasonFlags(DERBitString reasons)