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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeStampResponse
public TimeStampResponse(org.bouncycastle.asn1.tsp.TimeStampResp resp)
throws TSPException,
java.io.IOException
TimeStampResponse
public TimeStampResponse(byte[] req)
throws TSPException,
java.io.IOException
TimeStampResponse
public TimeStampResponse(java.io.InputStream in)
throws TSPException,
java.io.IOException
getStatus
public int getStatus()
getStatusString
public java.lang.String getStatusString()
getFailInfo
public org.bouncycastle.asn1.cmp.PKIFailureInfo getFailInfo()
getTimeStampToken
public TimeStampToken getTimeStampToken()
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.
- Parameters:
request
- the request to be checked against
- Throws:
TSPException
- if the request can not match this response.
getEncoded
public byte[] getEncoded()
throws java.io.IOException
- return the ASN.1 encoded representation of this object.
- Throws:
java.io.IOException