public class CRLReasonCodeExtension extends Extension
CRLReason,
Extension| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
critical, extensionId, extensionValue| Constructor and Description |
|---|
CRLReasonCodeExtension(boolean critical,
int reason)
Create a CRLReasonCodeExtension with the passed in reason.
|
CRLReasonCodeExtension(java.lang.Boolean critical,
java.lang.Object value)
Create the extension from the passed DER encoded value of the same.
|
CRLReasonCodeExtension(int reason)
Create a CRLReasonCodeExtension with the passed in reason.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the extension to the DerOutputStream.
|
java.lang.String |
getName()
Return the name of this extension.
|
int |
getReason() |
java.security.cert.CRLReason |
getReasonCode()
Return the reason as a CRLReason enum.
|
java.lang.String |
toString()
Returns a printable representation of the Reason code.
|
encode, equals, getExtensionId, getExtensionValue, getId, getValue, hashCode, isCritical, newExtensionpublic static final java.lang.String NAME
public CRLReasonCodeExtension(int reason)
throws java.io.IOException
reason - the enumerated value for the reason code.java.io.IOExceptionpublic CRLReasonCodeExtension(boolean critical,
int reason)
critical - true if the extension is to be treated as critical.reason - the enumerated value for the reason code, must be positive.public CRLReasonCodeExtension(java.lang.Boolean critical,
java.lang.Object value)
throws java.io.IOException
critical - true if the extension is to be treated as critical.value - an array of DER encoded bytes of the actual value.java.lang.ClassCastException - if value is not an array of bytesjava.io.IOException - on error.public java.lang.String toString()
public void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
public java.lang.String getName()
public int getReason()
public java.security.cert.CRLReason getReasonCode()