issrg.ac.attributes
Class NoAssertion

java.lang.Object
  extended by issrg.ac.Extension
      extended by issrg.ac.attributes.NoAssertion
All Implemented Interfaces:
java.lang.Cloneable

public class NoAssertion
extends Extension

Author:
anhnt

Field Summary
static java.lang.String NO_ASSERTION_OID
          The string stores the standard OID for the NoAssertion extension: 2.5.29.62
 
Fields inherited from class issrg.ac.Extension
critical, extnID, Null, theObject
 
Constructor Summary
NoAssertion()
          This method creates a default NoAssertion object.
NoAssertion(NoAssertion e)
          Creates a new instance of NoAssertion based on an existing NoAssertion extension
 
Method Summary
 java.lang.Object clone()
           
 void decodeValue(ASN1Object ao)
          This method decodes an ASN1Object to get the extension value for the object.
 ASN1Object encodeValue()
          This method encodes the extension value of the object.
 java.lang.String extensionValueToString(java.lang.String ident)
          This method returns the String representation of the extension value.
static void registerMe()
          This method registers this extension as an extension with a specific OID.
 
Methods inherited from class issrg.ac.Extension
decode, 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
 

Field Detail

NO_ASSERTION_OID

public static final java.lang.String NO_ASSERTION_OID
The string stores the standard OID for the NoAssertion extension: 2.5.29.62

See Also:
Constant Field Values
Constructor Detail

NoAssertion

public NoAssertion(NoAssertion e)
Creates a new instance of NoAssertion based on an existing NoAssertion extension

Parameters:
e - is an existing NoAssertion extension

NoAssertion

public NoAssertion()
This method creates a default NoAssertion object.

Method Detail

registerMe

public static void registerMe()
This method registers this extension as an extension with a specific OID. After it has been registered, Extensions can recognise the extension with this OID.


clone

public java.lang.Object clone()
Overrides:
clone in class Extension

encodeValue

public ASN1Object encodeValue()
This method encodes the extension value of the object.

Overrides:
encodeValue in class Extension
Returns:
an ASN1Object that represents the extension value of the object.

decodeValue

public void decodeValue(ASN1Object ao)
                 throws CodingException
This method decodes an ASN1Object to get the extension value for the object.

Overrides:
decodeValue in class Extension
Parameters:
ao - is an ASN1Object that is going to be decoded to get the extension value.
Throws:
CodingException

extensionValueToString

public java.lang.String extensionValueToString(java.lang.String ident)
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:
ident - - the indentation to use at the beginning of each line to make the text human-friendly