Class ReasonFlags
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.ReasonFlags
-
public class ReasonFlags extends java.lang.ObjectRepresent the CRL Reason Flags.This extension, if present, defines the identifies the reason for the certificate revocation.
- See Also:
Extension,CertAttrSet
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAA_COMPROMISEstatic java.lang.StringAFFLIATION_CHANGEDstatic java.lang.StringCA_COMPROMISEstatic java.lang.StringCERTIFICATION_HOLDstatic java.lang.StringCESSATION_OF_OPERATIONstatic java.lang.StringKEY_COMPROMISEstatic java.lang.StringPRIVILEGE_WITHDRAWNstatic java.lang.StringSUPERSEDEDstatic java.lang.StringUNUSEDReasons
-
Constructor Summary
Constructors Constructor Description ReasonFlags(boolean[] reasons)Create a ReasonFlags with the passed bit settings.ReasonFlags(byte[] 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String name)Delete the attribute value.voidencode(DerOutputStream out)Write the extension to the DerOutputStream.java.lang.Objectget(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.voidset(java.lang.String name, java.lang.Object obj)Set the attribute value.java.lang.StringtoString()Returns a printable representation of the ReasonFlags.
-
-
-
Field Detail
-
UNUSED
public static final java.lang.String UNUSED
Reasons- See Also:
- Constant Field Values
-
KEY_COMPROMISE
public static final java.lang.String KEY_COMPROMISE
- See Also:
- Constant Field Values
-
CA_COMPROMISE
public static final java.lang.String CA_COMPROMISE
- See Also:
- Constant Field Values
-
AFFLIATION_CHANGED
public static final java.lang.String AFFLIATION_CHANGED
- See Also:
- Constant Field Values
-
SUPERSEDED
public static final java.lang.String SUPERSEDED
- See Also:
- Constant Field Values
-
CESSATION_OF_OPERATION
public static final java.lang.String CESSATION_OF_OPERATION
- See Also:
- Constant Field Values
-
CERTIFICATION_HOLD
public static final java.lang.String CERTIFICATION_HOLD
- See Also:
- Constant Field Values
-
PRIVILEGE_WITHDRAWN
public static final java.lang.String PRIVILEGE_WITHDRAWN
- See Also:
- Constant Field Values
-
AA_COMPROMISE
public static final java.lang.String AA_COMPROMISE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReasonFlags
public ReasonFlags(byte[] reasons)
Create a ReasonFlags with the passed bit settings.- Parameters:
reasons- the bits to be set for the ReasonFlags.
-
ReasonFlags
public ReasonFlags(boolean[] reasons)
Create a ReasonFlags with the passed bit settings.- Parameters:
reasons- the bits to be set for the ReasonFlags.
-
ReasonFlags
public ReasonFlags(BitArray reasons)
Create a ReasonFlags with the passed bit settings.- Parameters:
reasons- the bits to be set for the ReasonFlags.
-
ReasonFlags
public ReasonFlags(DerInputStream in) throws java.io.IOException
Create the object from the passed DER encoded value.- Parameters:
in- the DerInputStream to read the ReasonFlags from.- Throws:
java.io.IOException- on decoding errors.
-
ReasonFlags
public ReasonFlags(DerValue derVal) throws java.io.IOException
Create the object from the passed DER encoded value.- Parameters:
derVal- the DerValue decoded from the stream.- Throws:
java.io.IOException- on decoding errors.
-
-
Method Detail
-
set
public void set(java.lang.String name, java.lang.Object obj) throws java.io.IOExceptionSet the attribute value.- Throws:
java.io.IOException
-
get
public java.lang.Object get(java.lang.String name) throws java.io.IOExceptionGet the attribute value.- Throws:
java.io.IOException
-
delete
public void delete(java.lang.String name) throws java.io.IOExceptionDelete the attribute value.- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
Returns a printable representation of the ReasonFlags.- Overrides:
toStringin classjava.lang.Object
-
encode
public void encode(DerOutputStream out) throws java.io.IOException
Write the extension to the DerOutputStream.- Parameters:
out- the DerOutputStream to write the extension to.- Throws:
java.io.IOException- on encoding errors.
-
getElements
public java.util.Enumeration<java.lang.String> getElements()
Return an enumeration of names of attributes existing within this attribute.
-
-