| |
|
| java.lang.Object org.bouncycastle.tsp.TimeStampResponse
TimeStampResponse | public class TimeStampResponse (Code) | | Base class for an RFC 3161 Time Stamp Response object.
|
TimeStampResponse | public TimeStampResponse(byte[] resp) throws TSPException, IOException(Code) | | Create a TimeStampResponse from a byte array containing an ASN.1 encoding.
Parameters: resp - the byte array containing the encoded response. throws: TSPException - if the response is malformed. throws: IOException - if the byte array doesn't represent an ASN.1 encoding. |
TimeStampResponse | public TimeStampResponse(InputStream in) throws TSPException, IOException(Code) | | Create a TimeStampResponse from an input stream containing an ASN.1 encoding.
Parameters: in - the input stream containing the encoded response. throws: TSPException - if the response is malformed. throws: IOException - if the stream doesn't represent an ASN.1 encoding. |
getEncoded | public byte[] getEncoded() throws IOException(Code) | | return the ASN.1 encoded representation of this object.
|
getStatus | public int getStatus()(Code) | | |
validate | public void validate(TimeStampRequest request) throws TSPException(Code) | | 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. |
|
|
|