issrg.ac.extensions
Class NoRevocation

java.lang.Object
  extended by issrg.ac.Extension
      extended by issrg.ac.extensions.NoRevocation
All Implemented Interfaces:
java.lang.Cloneable

public class NoRevocation
extends Extension


Field Summary
static java.lang.String NO_REVOCATION_METHOD_OID
           
 
Fields inherited from class issrg.ac.Extension
critical, extnID, Null, theObject
 
Constructor Summary
NoRevocation(ASN1Object ao)
          Creates a new instance of WebdavRevocation
NoRevocation(java.lang.String location, java.lang.String subjectDN, java.math.BigInteger serial)
           
 
Method Summary
 void decode(ASN1Object ao)
          This method decodes a given ASN1Object.
 void decodeValue(ASN1Object ao)
          This method decodes the Extension Value.
 ASN1Object encodeValue()
          This method encodes the extension value to the ASN1Object representing the encoding of the extension value and returns it.
 java.lang.String extensionValueToString(java.lang.String indent)
          This method returns the String representation of the extension value.
 java.lang.String getExtensionOID()
          Returns the OID of the extension in the dotted form.
static void registerMe()
           
 
Methods inherited from class issrg.ac.Extension
clone, getExtensionValue, isCritical, setCritical, setExtensionOID, setExtensionValue, toASN1Object, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_REVOCATION_METHOD_OID

public static final java.lang.String NO_REVOCATION_METHOD_OID
See Also:
Constant Field Values
Constructor Detail

NoRevocation

public NoRevocation(ASN1Object ao)
             throws CodingException
Creates a new instance of WebdavRevocation

Throws:
CodingException

NoRevocation

public NoRevocation(java.lang.String location,
                    java.lang.String subjectDN,
                    java.math.BigInteger serial)
Method Detail

getExtensionOID

public java.lang.String getExtensionOID()
Description copied from class: Extension
Returns the OID of the extension in the dotted form.

Overrides:
getExtensionOID in class Extension

encodeValue

public ASN1Object encodeValue()
                       throws CodingException
Description copied from class: Extension
This method encodes the extension value to the ASN1Object representing the encoding of the extension value and returns it. By default it returns the contents of the Extension that were received in decodeValue.

Override this method so that your Extension returns what you want.

Overrides:
encodeValue in class Extension
Returns:
ASN1Object, which will be subsequently DER-encoded and the bytes of that encoding will be converted into OCTET STRING of the extension value
Throws:
CodingException

decode

public void decode(ASN1Object ao)
            throws CodingException
Description copied from class: Extension
This method decodes a given ASN1Object. It must be a SEQUENCE of ObjectID, boolean criticality flag, and the Extension value, which is passed to setExtensionValue() method (which in its turn calls decodeValue() method).

Overrides:
decode in class Extension
Throws:
CodingException

decodeValue

public void decodeValue(ASN1Object ao)
                 throws CodingException
Description copied from class: Extension
This method decodes the Extension Value. By default it does not do anything.

Override this method so that your Extension decodes what you want to fill in its internal fields.

Overrides:
decodeValue in class Extension
Parameters:
ao - - the ASN1Object obtained by BER-decoding the bytes of the extension value OCTET STRING
Throws:
CodingException

registerMe

public static void registerMe()

extensionValueToString

public java.lang.String extensionValueToString(java.lang.String indent)
Description copied from class: Extension
This method returns the String representation of the extension value. By default it calls toString() method on extnValue object.

Override this method if you need more user-friendly output of your custom extension value.

Overrides:
extensionValueToString in class Extension
Parameters:
indent - - the indentation to use at the beginning of each line to make the text human-friendly