issrg.ac.extensions
Class AttributeAuthorityInformationAccess

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

public class AttributeAuthorityInformationAccess
extends Extension

Author:
anhnt

Field Summary
static java.lang.String ATTRIBUTE_AUTHORITY_INFORMATION_ACCESS
          The string stores the OID for the Attribute authority information access: 1.2.826.0.1.3344810.10.0
 
Fields inherited from class issrg.ac.Extension
critical, extnID, Null, theObject
 
Constructor Summary
AttributeAuthorityInformationAccess(AttributeAuthorityInformationAccess e)
          Creates a new instance of AttributeAuthorityInformationAccess based on an existing AAIA extension
AttributeAuthorityInformationAccess(java.lang.String[] extnValue)
          This method constructs an AAIA extension based on an extension value
 
Method Summary
 java.lang.Object clone()
           
 void decode(ASN1Object ao)
          This method decodes a given ASN1Object and upon successful decoding sets the AAIA extension for the AC.
 void decodeValue(ASN1Object ao)
          This method decodes an ASN1Object to get the extension value of an AAIA extension.
 ASN1Object encodeValue()
          This method encodes the ACs' locations to an ASN1Object object.
 java.lang.String extensionValueToString(java.lang.String ident)
          This method creates a string that represents all the issuer AC locations
 java.lang.String[] getLocations()
           
static void registerMe()
          This method registers this extension as an extension with a specific OID.
 void setLocations(java.lang.String[] s)
          This method sets the locations to an array of Strings, each representing the individual URL
 
Methods inherited from class issrg.ac.Extension
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

ATTRIBUTE_AUTHORITY_INFORMATION_ACCESS

public static final java.lang.String ATTRIBUTE_AUTHORITY_INFORMATION_ACCESS
The string stores the OID for the Attribute authority information access: 1.2.826.0.1.3344810.10.0

See Also:
Constant Field Values
Constructor Detail

AttributeAuthorityInformationAccess

public AttributeAuthorityInformationAccess(AttributeAuthorityInformationAccess e)
                                    throws CodingException
Creates a new instance of AttributeAuthorityInformationAccess based on an existing AAIA extension

Parameters:
e - is an AAIA extension
Throws:
CodingException

AttributeAuthorityInformationAccess

public AttributeAuthorityInformationAccess(java.lang.String[] extnValue)
This method constructs an AAIA extension based on an extension value

Parameters:
extnValue - is an array of strings. It indicates the locations of the ACs of the AC's issuer
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

decode

public void decode(ASN1Object ao)
            throws CodingException
This method decodes a given ASN1Object and upon successful decoding sets the AAIA extension for the AC.

Overrides:
decode in class Extension
Parameters:
ao - - ASN1Object to decode
Throws:
CodingException

decodeValue

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

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

getLocations

public java.lang.String[] getLocations()

setLocations

public void setLocations(java.lang.String[] s)
This method sets the locations to an array of Strings, each representing the individual URL

Parameters:
s - is an array of strings that represent the ACs' locations.

encodeValue

public ASN1Object encodeValue()
                       throws CodingException
This method encodes the ACs' locations to an ASN1Object object.

Overrides:
encodeValue in class Extension
Returns:
an ASN1Object that represents the ACs's locations
Throws:
CodingException

extensionValueToString

public java.lang.String extensionValueToString(java.lang.String ident)
This method creates a string that represents all the issuer AC locations

Overrides:
extensionValueToString in class Extension
Parameters:
ident - is a string used to separate the locations
Returns:
a string that represents all the issuer AC locations