public final class TsResponse
extends Object
TsResponse
is the container object for a 3161 timestamp
response. It is returned in normal use of theTSAservice.Constructor and Description |
---|
TsResponse(byte[] actualResponse) |
TsResponse(byte[] actualRequest,
byte[] actualResponse) |
TsResponse(TsRequest request) |
TsResponse(TsRequest request,
byte[] actualResponse) |
TsResponse(TsRequest request,
org.bouncycastle.tsp.TimeStampResponse response) |
TsResponse(TsResponse response) |
Modifier and Type | Method and Description |
---|---|
String |
getOriginOfTimestamp()
Identifiers for the DigiStamp TSA which created any included timestamp.
|
TsRequest |
getRequest() |
int |
getResponseCode()
The HTTP response code, for internal use, but available if desired.
|
String |
getStatusString()
This will return human-readable failure information if theTSAservice was
unable to retrieve a timestamp.
|
org.bouncycastle.tsp.TimeStampResponse |
getTimeStampResponse()
Returns the BouncyCastle TimeStampResponse Object
|
String |
getUser()
User ID that was used in creating this response.
|
boolean |
isGoodResponse()
This function performs thorough checking of the object's timestamp
response.
|
void |
setRequest(TsRequest request) |
String |
toString() |
void |
validateForm()
Check this response against to see if it a well formed response for the
passed in request.
|
public TsResponse(byte[] actualResponse) throws org.bouncycastle.tsp.TSPException, IOException
org.bouncycastle.tsp.TSPException
IOException
public TsResponse(byte[] actualRequest, byte[] actualResponse) throws IOException, org.bouncycastle.tsp.TSPException
IOException
org.bouncycastle.tsp.TSPException
public TsResponse(TsRequest request)
public TsResponse(TsRequest request, byte[] actualResponse) throws org.bouncycastle.tsp.TSPException, IOException
org.bouncycastle.tsp.TSPException
IOException
public TsResponse(TsRequest request, org.bouncycastle.tsp.TimeStampResponse response)
public TsResponse(TsResponse response)
public String getOriginOfTimestamp()
public TsRequest getRequest()
public int getResponseCode()
getStatusString()
for an explanation.public String getStatusString()
public org.bouncycastle.tsp.TimeStampResponse getTimeStampResponse()
public String getUser()
public boolean isGoodResponse()
CertHandler.isGoodTimestamp(TimeStampToken, CertHandler)
public void setRequest(TsRequest request)
public String toString()
toString
in class Object
public void validateForm() throws org.bouncycastle.tsp.TSPException
org.bouncycastle.tsp.TSPException
- if the request can not match this response.