public class

ReasonFlags

extends Object
java.lang.Object
   ↳ sun.security.x509.ReasonFlags

Class Overview

Represent the CRL Reason Flags.

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) }
 

Summary

Constants
String AA_COMPROMISE
String AFFILIATION_CHANGED
String CA_COMPROMISE
String CERTIFICATE_HOLD
String CESSATION_OF_OPERATION
String KEY_COMPROMISE
String PRIVILEGE_WITHDRAWN
String SUPERSEDED
String UNUSED Reasons
Public Constructors
ReasonFlags(byte[] reasons)
Create a ReasonFlags with the passed bit settings.
ReasonFlags(boolean[] reasons)
Create a ReasonFlags with the passed bit settings.
ReasonFlags(BitArray 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.
Public Methods
void delete(String name)
Delete the attribute value.
void encode(DerOutputStream out)
Write the extension to the DerOutputStream.
Object get(String name)
Get the attribute value.
Enumeration<String> getElements()
Return an enumeration of names of attributes existing within this attribute.
boolean[] getFlags()
Returns the reason flags as a boolean array.
void set(String name, Object obj)
Set the attribute value.
String toString()
Returns a printable representation of the ReasonFlags.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String AA_COMPROMISE

Constant Value: "aa_compromise"

public static final String AFFILIATION_CHANGED

Constant Value: "affiliation_changed"

public static final String CA_COMPROMISE

Constant Value: "ca_compromise"

public static final String CERTIFICATE_HOLD

Constant Value: "certificate_hold"

public static final String CESSATION_OF_OPERATION

Constant Value: "cessation_of_operation"

public static final String KEY_COMPROMISE

Constant Value: "key_compromise"

public static final String PRIVILEGE_WITHDRAWN

Constant Value: "privilege_withdrawn"

public static final String SUPERSEDED

Constant Value: "superseded"

public static final String UNUSED

Reasons

Constant Value: "unused"

Public Constructors

public ReasonFlags (byte[] reasons)

Create a ReasonFlags with the passed bit settings.

Parameters
reasons the bits to be set for the ReasonFlags.

public ReasonFlags (boolean[] reasons)

Create a ReasonFlags with the passed bit settings.

Parameters
reasons the bits to be set for the ReasonFlags.

public ReasonFlags (BitArray reasons)

Create a ReasonFlags with the passed bit settings.

Parameters
reasons the bits to be set for the ReasonFlags.

public ReasonFlags (DerInputStream in)

Create the object from the passed DER encoded value.

Parameters
in the DerInputStream to read the ReasonFlags from.
Throws
IOException on decoding errors.

public ReasonFlags (DerValue derVal)

Create the object from the passed DER encoded value.

Parameters
derVal the DerValue decoded from the stream.
Throws
IOException on decoding errors.

Public Methods

public void delete (String name)

Delete the attribute value.

Throws
IOException

public void encode (DerOutputStream out)

Write the extension to the DerOutputStream.

Parameters
out the DerOutputStream to write the extension to.
Throws
IOException on encoding errors.

public Object get (String name)

Get the attribute value.

Throws
IOException

public Enumeration<String> getElements ()

Return an enumeration of names of attributes existing within this attribute.

public boolean[] getFlags ()

Returns the reason flags as a boolean array.

public void set (String name, Object obj)

Set the attribute value.

Throws
IOException

public String toString ()

Returns a printable representation of the ReasonFlags.

Returns
  • a string representation of the object.