com.digt.trusted.tsp
Class TimeStampResponse

java.lang.Object
  extended by com.digt.trusted.tsp.TimeStampResponse

public class TimeStampResponse
extends java.lang.Object

Base class for an RFC 3161 Time Stamp Response object.


Constructor Summary
TimeStampResponse(byte[] req)
           
TimeStampResponse(java.io.InputStream in)
           
TimeStampResponse(TimeStampResp resp)
           
 
Method Summary
 byte[] getEncoded()
          return the ASN.1 encoded representation of this object.
 PKIFailureInfo getFailInfo()
           
 int getStatus()
           
 java.lang.String getStatusString()
           
 TimeStampToken getTimeStampToken()
           
 void validate(TimeStampRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStampResponse

public TimeStampResponse(TimeStampResp resp)
                  throws TSPException,
                         java.io.IOException
Throws:
TSPException
java.io.IOException

TimeStampResponse

public TimeStampResponse(byte[] req)
                  throws TSPException,
                         java.io.IOException
Throws:
TSPException
java.io.IOException

TimeStampResponse

public TimeStampResponse(java.io.InputStream in)
                  throws TSPException,
                         java.io.IOException
Throws:
TSPException
java.io.IOException
Method Detail

getStatus

public int getStatus()

getStatusString

public java.lang.String getStatusString()

getFailInfo

public PKIFailureInfo getFailInfo()

getTimeStampToken

public TimeStampToken getTimeStampToken()

validate

public void validate(TimeStampRequest request)
              throws TSPException
Throws:
TSPException

getEncoded

public byte[] getEncoded()
                  throws java.io.IOException
return the ASN.1 encoded representation of this object.

Throws:
java.io.IOException