issrg.ac
Class IssuerSerial

java.lang.Object
  extended by issrg.ac.IssuerSerial
All Implemented Interfaces:
iaik.asn1.ASN1Type, java.lang.Cloneable

public class IssuerSerial
extends java.lang.Object
implements iaik.asn1.ASN1Type, java.lang.Cloneable

This class represents the IssuerSerial ASN.1 construct.


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

serial

protected java.math.BigInteger serial

issuerUID

public iaik.asn1.BIT_STRING issuerUID
Constructor Detail

IssuerSerial

protected IssuerSerial()

IssuerSerial

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

Parameters:
ao - - the ASN1Object representing IssuerSerial
Throws:
iaik.asn1.CodingException

IssuerSerial

public IssuerSerial(IssuerSerial is)
             throws iaik.asn1.CodingException
This constructor copies a given IssuerSerial.

Parameters:
is - - the IssuerSerial to copy
Throws:
iaik.asn1.CodingException

IssuerSerial

public IssuerSerial(iaik.asn1.structures.GeneralNames issuer,
                    java.math.BigInteger serial,
                    iaik.asn1.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 iaik.asn1.structures.GeneralNames getIssuer()
Returns the Issuer (GeneralNames) construct of the IssuerSerial.


setIssuer

public void setIssuer(iaik.asn1.structures.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 iaik.asn1.BIT_STRING getIssuerUID()
Returns the IssuerUID bit string of the IssuerSerial. Can be null, if not present.


setIssuerUID

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


toASN1Object

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

Specified by:
toASN1Object in interface iaik.asn1.ASN1Type
Returns:
SEQUENCE of the present components
Throws:
iaik.asn1.CodingException

decode

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

Specified by:
decode in interface iaik.asn1.ASN1Type
Parameters:
ao - - the ASN1Object to be decoded
Throws:
iaik.asn1.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