All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.x509.extensions.ReasonCode

java.lang.Object
   |
   +----iaik.x509.V3Extension
           |
           +----iaik.x509.extensions.ReasonCode

public class ReasonCode
extends V3Extension
This class implements the ReasonCode Extension. The reasonCode is a non-critical CRL entry extension that identifies the reason for the certificate revocation. CAs are strongly encouraged to include reason codes in CRL entries; however, the reason code CRL entry extension should be absent instead of using the unspecified reasonCode value.


Variable Index

 o affiliationChanged
 o cACompromise
 o certificateHold
 o cessationOfOperation
 o keyCompromise
 o removeFromCRL
 o superseded
 o unspecified

Constructor Index

 o ReasonCode()
Default constructor.

Method Index

 o getObjectID()
Returns the object ID of this extension
 o getReasonCode()
Returns the reason code.
 o getReasonCodeName()
 o hashCode()
Returns a hashcode for this identity.
 o init(ASN1Object)
Inits this implementation of an extension with an ASN1Object.
 o setReasonCode(int)
Sets the reason code.
 o toASN1Object()
Returns the value of this extension as ASN1Object.
 o toString()
Returns a string that represents the contents of the extensions.

Variables

 o unspecified
 public static int unspecified
 o keyCompromise
 public static int keyCompromise
 o cACompromise
 public static int cACompromise
 o affiliationChanged
 public static int affiliationChanged
 o superseded
 public static int superseded
 o cessationOfOperation
 public static int cessationOfOperation
 o certificateHold
 public static int certificateHold
 o removeFromCRL
 public static int removeFromCRL

Constructors

 o ReasonCode
 public ReasonCode()
Default constructor. Creates an empty object.

Methods

 o getObjectID
 public ObjectID getObjectID()
Returns the object ID of this extension

Returns:
the object ID
Overrides:
getObjectID in class V3Extension
 o init
 public void init(ASN1Object obj) throws ExtensionException
Inits this implementation of an extension with an ASN1Object. The ASN1Object is the extensionValue from ASN.1 type "Extension". The ASN1Object is the one created by toASN1Object().

Parameters:
obj - the extensionValue as ASN1Object
Throws: ExtensionException
if the extension could not be parsed
Overrides:
init in class V3Extension
See Also:
toASN1Object
 o toASN1Object
 public ASN1Object toASN1Object() throws ExtensionException
Returns the value of this extension as ASN1Object. The ASN1Object is the extensionValue from ASN.1 type "Extension". The created ASN1Object is same, which is the parameter to method init.

Returns:
the value of the extension as ASN1Object
Throws: ExtensionException
if the extension could not be created
Overrides:
toASN1Object in class V3Extension
See Also:
init
 o setReasonCode
 public void setReasonCode(int code)
Sets the reason code.

Parameters:
code - the reason code
 o getReasonCode
 public int getReasonCode()
Returns the reason code.

Returns:
the reason code
 o getReasonCodeName
 public String getReasonCodeName()
 o hashCode
 public int hashCode()
Returns a hashcode for this identity.

Returns:
a hash code for this identity
Overrides:
hashCode in class V3Extension
 o toString
 public String toString()
Returns a string that represents the contents of the extensions.

Returns:
the string representation
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index