IAIK TSP
version 2.32

iaik.tsp
Class PKIStatusInfo

java.lang.Object
  extended by iaik.tsp.PKIStatusInfo

public class PKIStatusInfo
extends java.lang.Object

This class implements the TSP ASN.1 type PKIStatusInfo as it is specified in RFC 3161.

 PKIStatusInfo ::= SEQUENCE {
     status         PKIStatus,
     statusString   PKIFreeText    OPTIONAL,
     failInfo       PKIFailureInfo OPTIONAL
 }
 

This class handles the ASN.1 structure and the DER encoding and decoding of this structure.


Constructor Summary
PKIStatusInfo(ASN1Object component)
          This constructor tries to reconstruct a PKIStatusInfo object from the given ASN.1 structure.
PKIStatusInfo(PKIStatus status)
          To construct a new PKIStatusInfo object a PKIStatus object must be provided.
 
Method Summary
 byte[] getEncoded()
          This method DER encodes the ASN.1 PKIStatusInfo object.
 PKIFailureInfo getPKIFailureInfo()
          This method returns the PKIFailureInfo object.
 PKIFreeText getPKIFreeText()
          This method returns the PKIFreeText object.
 PKIStatus getPKIStatus()
          This method returns the PKIStatus object.
 void setPKIFailureInfo(PKIFailureInfo fail_info)
          This method sets a new PKIFailureInfo object.
 void setPKIFreeText(PKIFreeText status_string)
          This method sets a new PKIFreeText object.
 void setPKIStatus(PKIStatus status)
          This method sets a new PKIStatus object.
 ASN1Object toASN1Object()
          Returns the ASN.1 structure of the PKIStatusInfo object.
 java.lang.String toString()
          This method returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PKIStatusInfo

public PKIStatusInfo(PKIStatus status)
              throws java.lang.NullPointerException
To construct a new PKIStatusInfo object a PKIStatus object must be provided.

Parameters:
status - The status of the last time stamping.
Throws:
java.lang.NullPointerException - Thrown if the argument is null.

PKIStatusInfo

public PKIStatusInfo(ASN1Object component)
              throws CodingException
This constructor tries to reconstruct a PKIStatusInfo object from the given ASN.1 structure.

Parameters:
component - The ASN.1 structure.
Throws:
CodingException - Thrown if the given ASN1Object is not a PKIStatusInfo ASN.1 object.
Method Detail

getEncoded

public byte[] getEncoded()
This method DER encodes the ASN.1 PKIStatusInfo object.

Returns:
DER encoded PKIStatusInfo object.

toASN1Object

public ASN1Object toASN1Object()
Returns the ASN.1 structure of the PKIStatusInfo object.

Returns:
ASN1Object of the PKIStatusInfo object.

setPKIStatus

public void setPKIStatus(PKIStatus status)
                  throws java.lang.NullPointerException
This method sets a new PKIStatus object.

Parameters:
status - The new PKIStatus.
Throws:
java.lang.NullPointerException - Thrown if the argument is null.

setPKIFreeText

public void setPKIFreeText(PKIFreeText status_string)
                    throws java.lang.NullPointerException
This method sets a new PKIFreeText object.

Parameters:
status_string - The new PKIFreeText object.
Throws:
java.lang.NullPointerException - Thrown if the argument is null.

setPKIFailureInfo

public void setPKIFailureInfo(PKIFailureInfo fail_info)
                       throws java.lang.NullPointerException
This method sets a new PKIFailureInfo object.

Parameters:
fail_info - The PKIFailureInfo object.
Throws:
java.lang.NullPointerException - Thrown if the argument is null.

getPKIStatus

public PKIStatus getPKIStatus()
This method returns the PKIStatus object.

Returns:
The PKIStatus object.

getPKIFreeText

public PKIFreeText getPKIFreeText()
This method returns the PKIFreeText object.

Returns:
The PKIFreeText object.

getPKIFailureInfo

public PKIFailureInfo getPKIFailureInfo()
This method returns the PKIFailureInfo object.

Returns:
The PKIFailureInfo object.

toString

public java.lang.String toString()
This method returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A string representing the PKIStatusInfo object.

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK TSP, © 2002 IAIK, © 2003 - 2014 Stiftung SIC