public class TimeStampResponse extends Object
| Constructor and Description |
|---|
TimeStampResponse(byte[] resp)
Create a TimeStampResponse from a byte array containing an ASN.1 encoding.
|
TimeStampResponse(InputStream in)
Create a TimeStampResponse from an input stream containing an ASN.1 encoding.
|
TimeStampResponse(TimeStampResp resp) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
PKIFailureInfo |
getFailInfo() |
int |
getStatus() |
String |
getStatusString() |
TimeStampToken |
getTimeStampToken() |
void |
validate(TimeStampRequest request)
Check this response against to see if it a well formed response for
the passed in request.
|
public TimeStampResponse(TimeStampResp resp) throws TSPException, IOException
TSPExceptionIOExceptionpublic TimeStampResponse(byte[] resp)
throws TSPException,
IOException
resp - the byte array containing the encoded response.TSPException - if the response is malformed.IOException - if the byte array doesn't represent an ASN.1 encoding.public TimeStampResponse(InputStream in) throws TSPException, IOException
in - the input stream containing the encoded response.TSPException - if the response is malformed.IOException - if the stream doesn't represent an ASN.1 encoding.public int getStatus()
public String getStatusString()
public PKIFailureInfo getFailInfo()
public TimeStampToken getTimeStampToken()
public void validate(TimeStampRequest request) throws TSPException
request - the request to be checked againstTSPException - if the request can not match this response.public byte[] getEncoded()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.