issrg.ac.extensions
Class AuthorityInformationAccess

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

public class AuthorityInformationAccess
extends Extension


Field Summary
 
Fields inherited from class issrg.ac.Extension
critical, extnID, Null, theObject
 
Constructor Summary
AuthorityInformationAccess()
           
AuthorityInformationAccess(ASN1Object ao)
           
AuthorityInformationAccess(java.util.Map env, java.lang.String subjectDN, java.lang.String holderDN, 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.util.ArrayList getValues()
           
static void registerMe()
           
 
Methods inherited from class issrg.ac.Extension
clone, getExtensionOID, getExtensionValue, isCritical, setCritical, setExtensionOID, setExtensionValue, toASN1Object, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorityInformationAccess

public AuthorityInformationAccess()

AuthorityInformationAccess

public AuthorityInformationAccess(ASN1Object ao)
                           throws CodingException
Throws:
CodingException

AuthorityInformationAccess

public AuthorityInformationAccess(java.util.Map env,
                                  java.lang.String subjectDN,
                                  java.lang.String holderDN,
                                  java.math.BigInteger serial)
Method Detail

getValues

public java.util.ArrayList getValues()

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

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

registerMe

public static void registerMe()