issrg.ac
Class V2Form

java.lang.Object
  extended by issrg.ac.V2Form
All Implemented Interfaces:
java.lang.Cloneable

public class V2Form
extends java.lang.Object
implements java.lang.Cloneable

This class represents the V2Form ASN.1 construct.


Field Summary
protected  IssuerSerial baseCertificateID
           
static int BASECERTIFICATEID_TAG
           
protected  GeneralNames issuerName
           
protected  ObjectDigestInfo objectDigestInfo
           
static int OBJECTDIGESTINFO_TAG
           
 
Constructor Summary
protected V2Form()
           
  V2Form(GeneralNames issuerName, IssuerSerial baseCertificateID, ObjectDigestInfo objectDigestInfo)
          This constructor can be used to construct a V2Form object out of its components.
  V2Form(V2Form v2)
          This constructor copies a given V2Form.
 
Method Summary
 java.lang.Object clone()
           
 void decode(ASN1Object ao)
          This method decodes the given ASN1Object and sets the V2Form contents from it.
 IssuerSerial getBaseCertificateID()
          Returns the Base Certificate ID construct of the V2Form.
 GeneralNames getIssuerName()
          Returns the Issuer Name (GeneralNames) construct of the V2Form.
 ObjectDigestInfo getObjectDigestInfo()
          Returns the Object Digest Info construct of the V2Form.
 void setBaseCertificateID(IssuerSerial baseCertificateID)
          Sets the Base Certificate ID construct of the V2Form.
 void setIssuerName(GeneralNames issuerName)
          Sets the Issuer Name construct of the V2Form.
 void setObjectDigestInfo(ObjectDigestInfo objectDigestInfo)
          Sets the Object Digest Info construct of the V2Form.
 ASN1Object toASN1Object()
          This method returns the ASN1Object of V2Form.
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String indent)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BASECERTIFICATEID_TAG

public static final int BASECERTIFICATEID_TAG
See Also:
Constant Field Values

OBJECTDIGESTINFO_TAG

public static final int OBJECTDIGESTINFO_TAG
See Also:
Constant Field Values

issuerName

protected GeneralNames issuerName

baseCertificateID

protected IssuerSerial baseCertificateID

objectDigestInfo

protected ObjectDigestInfo objectDigestInfo
Constructor Detail

V2Form

protected V2Form()

V2Form

public V2Form(V2Form v2)
       throws CodingException
This constructor copies a given V2Form.

Parameters:
v2 - - the V2Form to copy.
Throws:
CodingException

V2Form

public V2Form(GeneralNames issuerName,
              IssuerSerial baseCertificateID,
              ObjectDigestInfo objectDigestInfo)
This constructor can be used to construct a V2Form object out of its components. Note that all of the components are optional and any of them can be null, but there should be at least one non-null parameter.

Parameters:
issuerName - is a GeneralNames object; can be null if not present
baseCertificateID - is the IssuerSerial object; can be null if not present
objectDigestInfo - is the ObjectDigestInfo object; can be null if not present
Method Detail

getIssuerName

public GeneralNames getIssuerName()
Returns the Issuer Name (GeneralNames) construct of the V2Form. Can be null, if it is not present.


setIssuerName

public void setIssuerName(GeneralNames issuerName)
Sets the Issuer Name construct of the V2Form. Can be null, if it is not present.


getBaseCertificateID

public IssuerSerial getBaseCertificateID()
Returns the Base Certificate ID construct of the V2Form. Can be null, if it is not present.


setBaseCertificateID

public void setBaseCertificateID(IssuerSerial baseCertificateID)
Sets the Base Certificate ID construct of the V2Form. Can be null, if it is not present.


getObjectDigestInfo

public ObjectDigestInfo getObjectDigestInfo()
Returns the Object Digest Info construct of the V2Form. Can be null, if it is not present.


setObjectDigestInfo

public void setObjectDigestInfo(ObjectDigestInfo objectDigestInfo)
Sets the Object Digest Info construct of the V2Form. Can be null, if it is not present.


toASN1Object

public ASN1Object toASN1Object()
                        throws CodingException
This method returns the ASN1Object of V2Form.

Returns:
SEQUENCE of all the present components
Throws:
CodingException

decode

public void decode(ASN1Object ao)
            throws CodingException
This method decodes the given ASN1Object and sets the V2Form contents from it. It must be a SEQUENCE of V2Form elements, all of which are optional, but at least one must be present.

Parameters:
ao - - the ASN1Object to decode
Throws:
CodingException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String indent)

clone

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