issrg.ac.attributes
Class AuthorityAttributeIdentifier

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

public class AuthorityAttributeIdentifier
extends Extension

Author:
anhnt

Field Summary
static java.lang.String AUTHORITY_ATTRIBUTE_IDENTIFIER_OID
          The string stores the standard OID for the Authority Attribute Identifier: 2.5.29.38
 
Fields inherited from class issrg.ac.Extension
critical, extnID, Null, theObject
 
Constructor Summary
AuthorityAttributeIdentifier(AuthorityAttributeIdentifier e)
          Creates a new instance of AAI extension based on an existing AAI extension
AuthorityAttributeIdentifier(IssuerSerial[] issuerSerials)
          This method constructs an AAI extension based on a list of issuerSerials
 
Method Summary
 java.lang.Object clone()
           
 void decodeValue(ASN1Object ao)
          This method decodes an ASN1Object to get the array of IssuerSerials object.
 ASN1Object encodeValue()
          This method encodes an array of IssuerSerials objects to an ASN1Object object.
 java.lang.String extensionValueToString(java.lang.String indent)
          This method creates a string that represents all issuer serials
 IssuerSerial[] getIssuerSerials()
          This method returns all the issuerSerials
static void registerMe()
          This method registers this extension as an extension with a specific OID.
 void setIssuerSerials(IssuerSerial[] is)
          This method is used to set the issuerSerials for the object
 
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

AUTHORITY_ATTRIBUTE_IDENTIFIER_OID

public static final java.lang.String AUTHORITY_ATTRIBUTE_IDENTIFIER_OID
The string stores the standard OID for the Authority Attribute Identifier: 2.5.29.38

See Also:
Constant Field Values
Constructor Detail

AuthorityAttributeIdentifier

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

Parameters:
e - is an AAI extension
Throws:
CodingException

AuthorityAttributeIdentifier

public AuthorityAttributeIdentifier(IssuerSerial[] issuerSerials)
This method constructs an AAI extension based on a list of issuerSerials

Parameters:
issuerSerials - is an array of IssuerSerial objects.
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

decodeValue

public void decodeValue(ASN1Object ao)
                 throws CodingException
This method decodes an ASN1Object to get the array of IssuerSerials object.

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

encodeValue

public ASN1Object encodeValue()
                       throws CodingException
This method encodes an array of IssuerSerials objects to an ASN1Object object. This method is the reversion of the previous method.

Overrides:
encodeValue in class Extension
Returns:
an ASN1Object that contains the array of IssuerSerials objects.
Throws:
CodingException

getIssuerSerials

public IssuerSerial[] getIssuerSerials()
This method returns all the issuerSerials

Returns:
an array of IssuerSerial

setIssuerSerials

public void setIssuerSerials(IssuerSerial[] is)
This method is used to set the issuerSerials for the object

Parameters:
is - is an array of IssuerSerial

extensionValueToString

public java.lang.String extensionValueToString(java.lang.String indent)
This method creates a string that represents all issuer serials

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