public class CRLReasonExtension extends X509Extension
CRLReason, Serialized Formid_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded| Constructor and Description | 
|---|
CRLReasonExtension()
Create a new extension with the appropriate OID type. 
 | 
CRLReasonExtension(CRLReason reason)
Creates a new extension with the given reason. 
 | 
CRLReasonExtension(CRLReason reason, boolean critical)
Creates a new extension with the given reason. 
 | 
CRLReasonExtension(java.io.InputStream is)  | 
| Modifier and Type | Method and Description | 
|---|---|
CRLReason | 
getReason()
Gets the reason of this extension. 
 | 
java.lang.String | 
toString()
Returns a string representation of this object. 
 | 
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternalpublic CRLReasonExtension()
Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream) method.
public CRLReasonExtension(CRLReason reason)
reason - The reason of the certificate revocation; defined constants are available in the CRLReason class.public CRLReasonExtension(CRLReason reason, boolean critical)
reason - The reason of the certificate revocation; defined constants are available in the CRLReason class.critical - true if this extension is critical, false otherwise.
public CRLReasonExtension(java.io.InputStream is)
                   throws java.io.IOException
java.io.IOExceptionpublic CRLReason getReason()
public java.lang.String toString()
X509ExtensiontoString in class X509Extension