|
Bouncy Castle Cryptography Library 1.46 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.tsp.TimeStampResponse
public class TimeStampResponse
Base class for an RFC 3161 Time Stamp Response object.
Constructor Summary | |
---|---|
TimeStampResponse(byte[] resp)
Create a TimeStampResponse from a byte array containing an ASN.1 encoding. |
|
TimeStampResponse(java.io.InputStream in)
Create a TimeStampResponse from an input stream containing an ASN.1 encoding. |
|
TimeStampResponse(org.bouncycastle.asn1.tsp.TimeStampResp resp)
|
Method Summary | |
---|---|
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object. |
org.bouncycastle.asn1.cmp.PKIFailureInfo |
getFailInfo()
|
int |
getStatus()
|
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeStampResponse(org.bouncycastle.asn1.tsp.TimeStampResp resp) throws TSPException, java.io.IOException
TSPException
java.io.IOException
public TimeStampResponse(byte[] resp) throws TSPException, java.io.IOException
resp
- the byte array containing the encoded response.
TSPException
- if the response is malformed.
java.io.IOException
- if the byte array doesn't represent an ASN.1 encoding.public TimeStampResponse(java.io.InputStream in) throws TSPException, java.io.IOException
in
- the input stream containing the encoded response.
TSPException
- if the response is malformed.
java.io.IOException
- if the stream doesn't represent an ASN.1 encoding.Method Detail |
---|
public int getStatus()
public java.lang.String getStatusString()
public org.bouncycastle.asn1.cmp.PKIFailureInfo getFailInfo()
public TimeStampToken getTimeStampToken()
public void validate(TimeStampRequest request) throws TSPException
request
- the request to be checked against
TSPException
- if the request can not match this response.public byte[] getEncoded() throws java.io.IOException
java.io.IOException
|
Bouncy Castle Cryptography Library 1.46 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |