issrg.ac
Class Holder

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

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

This is the class for the Holder ASN.1 construct.


Field Summary
protected  IssuerSerial baseCertificateID
           
static int BASECERTIFICATEID_TAG
           
protected  GeneralNames entityName
           
static int ENTITYNAME_TAG
           
protected  ObjectDigestInfo objectDigestInfo
           
static int OBJECTDIGESTINFO_TAG
           
 
Constructor Summary
protected Holder()
           
  Holder(ASN1Object ao)
          This constructo builds a Holder from ASN1Object.
  Holder(IssuerSerial baseCertificateID, GeneralNames entityName, ObjectDigestInfo objectDigestInfo)
          This constructor builds an object out of its components.
 
Method Summary
 java.lang.Object clone()
           
 void decode(ASN1Object ao)
          This method decodes the given ASN1Object and sets the contents of the Holder to the contents of ASN1Object.
 IssuerSerial getBaseCertificateID()
          Returns the Base Certificate ID construct of the Holder.
 GeneralNames getEntityName()
          Returns the Entity Name (GeneralNames) construct of the Holder.
 ObjectDigestInfo getObjectDigestInfo()
          Returns the Object Digest Info construct of the Holder.
 void setBaseCertificateID(IssuerSerial baseCertificateID)
          Sets the Base Certificate ID construct of the Holder.
 void setEntityName(GeneralNames entityName)
          Sets the Entity Name construct of the Holder.
 void setObjectDigestInfo(ObjectDigestInfo objectDigestInfo)
          Sets the Object Digest Info construct of the Holder.
 ASN1Object toASN1Object()
          This method returns the ASN1Object of Holder.
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String ident)
           
 
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

ENTITYNAME_TAG

public static final int ENTITYNAME_TAG
See Also:
Constant Field Values

OBJECTDIGESTINFO_TAG

public static final int OBJECTDIGESTINFO_TAG
See Also:
Constant Field Values

baseCertificateID

protected IssuerSerial baseCertificateID

entityName

protected GeneralNames entityName

objectDigestInfo

protected ObjectDigestInfo objectDigestInfo
Constructor Detail

Holder

protected Holder()

Holder

public Holder(ASN1Object ao)
       throws CodingException
This constructo builds a Holder from ASN1Object.

Parameters:
ao - - the ASN1Object representing the Holder
Throws:
CodingException

Holder

public Holder(IssuerSerial baseCertificateID,
              GeneralNames entityName,
              ObjectDigestInfo objectDigestInfo)
This constructor builds an object out of its components. You can pass some or all of the values. Missing values will be omitted in the encoding (all of them are optional), but at least one must be present; otherwise a CodingException will be thrown.

Method Detail

getBaseCertificateID

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


setBaseCertificateID

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


getEntityName

public GeneralNames getEntityName()
Returns the Entity Name (GeneralNames) construct of the Holder. Can be null, if it is not present.


setEntityName

public void setEntityName(GeneralNames entityName)
Sets the Entity Name construct of the Holder. Can be null, if it is not present.


getObjectDigestInfo

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


setObjectDigestInfo

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


toASN1Object

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

Returns:
SEQUENCE of all present components
Throws:
CodingException

decode

public void decode(ASN1Object ao)
            throws CodingException
This method decodes the given ASN1Object and sets the contents of the Holder to the contents of ASN1Object.

Parameters:
ao - - the ASN1Object to decode; it must be a SEQUENCE, where each element represents the elements of Holder
Throws:
CodingException

toString

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

toString

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

clone

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