|
IAIK TSP version 2.32 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.tsp.PKIStatusInfo
public class PKIStatusInfo
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 |
---|
public PKIStatusInfo(PKIStatus status) throws java.lang.NullPointerException
PKIStatusInfo
object a PKIStatus
object must be provided.
status
- The status of the last time stamping.
java.lang.NullPointerException
- Thrown if the argument is null
.public PKIStatusInfo(ASN1Object component) throws CodingException
PKIStatusInfo
object
from the given ASN.1 structure.
component
- The ASN.1 structure.
CodingException
- Thrown if the given ASN1Object
is not a
PKIStatusInfo
ASN.1 object.Method Detail |
---|
public byte[] getEncoded()
PKIStatusInfo
object.
PKIStatusInfo
object.public ASN1Object toASN1Object()
PKIStatusInfo
object.
ASN1Object
of the PKIStatusInfo
object.public void setPKIStatus(PKIStatus status) throws java.lang.NullPointerException
PKIStatus
object.
status
- The new PKIStatus
.
java.lang.NullPointerException
- Thrown if the argument is null
.public void setPKIFreeText(PKIFreeText status_string) throws java.lang.NullPointerException
PKIFreeText
object.
status_string
- The new PKIFreeText
object.
java.lang.NullPointerException
- Thrown if the argument is null
.public void setPKIFailureInfo(PKIFailureInfo fail_info) throws java.lang.NullPointerException
PKIFailureInfo
object.
fail_info
- The PKIFailureInfo
object.
java.lang.NullPointerException
- Thrown if the argument is null
.public PKIStatus getPKIStatus()
PKIStatus
object.
PKIStatus
object.public PKIFreeText getPKIFreeText()
PKIFreeText
object.
PKIFreeText
object.public PKIFailureInfo getPKIFailureInfo()
PKIFailureInfo
object.
PKIFailureInfo
object.public java.lang.String toString()
toString
in class java.lang.Object
PKIStatusInfo
object.
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |