issrg.ac
Class IssuerSerial

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

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

This class represents the IssuerSerial ASN.1 construct.


Field Summary
protected  GeneralNames issuer
           
 BIT_STRING issuerUID
           
protected  java.math.BigInteger serial
           
 
Constructor Summary
protected IssuerSerial()
           
  IssuerSerial(ASN1Object ao)
          This constructor builds an IssuerSerial from a given ASN1Object.
  IssuerSerial(GeneralNames issuer, java.math.BigInteger serial, BIT_STRING issuerUID)
          This constructor builds an IssuerSerial object out of its components.
 
Method Summary
 java.lang.Object clone()
           
 void decode(ASN1Object ao)
          This method decodes a given ASN1Object and sets IssuerSerial to its contents.
 GeneralNames getIssuer()
          Returns the Issuer (GeneralNames) construct of the IssuerSerial.
 BIT_STRING getIssuerUID()
          Returns the IssuerUID bit string of the IssuerSerial.
 java.math.BigInteger getSerial()
          Returns the Serial Number of the IssuerSerial.
 void setIssuer(GeneralNames issuer)
          Sets the Issuer (GeneralNames) construct of the IssuerSerial.
 void setIssuerUID(BIT_STRING issuerUID)
          Sets the IssuerUID bit string of the IssuerSerial.
 void setSerial(java.math.BigInteger serial)
          Sets the Serial Number of the IssuerSerial.
 ASN1Object toASN1Object()
          This method returns the ASN1Object of IssuerSerial.
 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

issuer

protected GeneralNames issuer

serial

protected java.math.BigInteger serial

issuerUID

public BIT_STRING issuerUID
Constructor Detail

IssuerSerial

protected IssuerSerial()

IssuerSerial

public IssuerSerial(ASN1Object ao)
             throws CodingException
This constructor builds an IssuerSerial from a given ASN1Object.

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

IssuerSerial

public IssuerSerial(GeneralNames issuer,
                    java.math.BigInteger serial,
                    BIT_STRING issuerUID)
This constructor builds an IssuerSerial object out of its components.

Parameters:
issuer - - the GeneralNames of the issuer
serial - - the BigInteger of the serial number of the PKC issued by the issuer
issuerUID - - the BIT_STRING of issuer unique identifier of the PKC issued by the issuer; can be null, if not present
Method Detail

getIssuer

public GeneralNames getIssuer()
Returns the Issuer (GeneralNames) construct of the IssuerSerial.


setIssuer

public void setIssuer(GeneralNames issuer)
Sets the Issuer (GeneralNames) construct of the IssuerSerial.


getSerial

public java.math.BigInteger getSerial()
Returns the Serial Number of the IssuerSerial.


setSerial

public void setSerial(java.math.BigInteger serial)
Sets the Serial Number of the IssuerSerial.


getIssuerUID

public BIT_STRING getIssuerUID()
Returns the IssuerUID bit string of the IssuerSerial. Can be null, if not present.


setIssuerUID

public void setIssuerUID(BIT_STRING issuerUID)
Sets the IssuerUID bit string of the IssuerSerial. Can be null, if not present.


toASN1Object

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

Returns:
SEQUENCE of the present components
Throws:
CodingException

decode

public void decode(ASN1Object ao)
            throws CodingException
This method decodes a given ASN1Object and sets IssuerSerial to its contents. It must be a SEQUENCE of elements present in IssuerSerial

Parameters:
ao - - the ASN1Object to be decoded
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