org.bouncycastle.tsp
Class TimeStampResponse
java.lang.Object
org.bouncycastle.tsp.TimeStampResponse
public class TimeStampResponse
extends java.lang.Object
Base class for an RFC 3161 Time Stamp Response object.
TimeStampResponse
public TimeStampResponse(InputStream in)
throws TSPException,
IOException
TimeStampResponse
public TimeStampResponse(TimeStampResp resp)
throws TSPException,
IOException
TimeStampResponse
public TimeStampResponse(byte[] req)
throws TSPException,
IOException
getEncoded
public byte[] getEncoded()
throws IOException
return the ASN.1 encoded representation of this object.
getFailInfo
public PKIFailureInfo getFailInfo()
getStatus
public int getStatus()
getStatusString
public String getStatusString()
validate
public void validate(TimeStampRequest request)
throws TSPException
Check this response against to see if it a well formed response for
the passed in request. Validation will include checking the time stamp
token if the response status is GRANTED or GRANTED_WITH_MODS.
request
- the request to be checked against