java.lang.Object | |
↳ | sun.security.timestamp.TSResponse |
This class provides the response corresponding to a timestamp request, as defined in RFC 3161. The TimeStampResp ASN.1 type has the following definition:
TimeStampResp ::= SEQUENCE { status PKIStatusInfo, timeStampToken TimeStampToken OPTIONAL ] PKIStatusInfo ::= SEQUENCE { status PKIStatus, statusString PKIFreeText OPTIONAL, failInfo PKIFailureInfo OPTIONAL } PKIStatus ::= INTEGER { granted (0), -- when the PKIStatus contains the value zero a TimeStampToken, as -- requested, is present. grantedWithMods (1), -- when the PKIStatus contains the value one a TimeStampToken, -- with modifications, is present. rejection (2), waiting (3), revocationWarning (4), -- this message contains a warning that a revocation is -- imminent revocationNotification (5) -- notification that a revocation has occurred } PKIFreeText ::= SEQUENCE SIZE (1..MAX) OF UTF8String -- text encoded as UTF-8 String (note: each UTF8String SHOULD -- include an RFC 1766 language tag to indicate the language -- of the contained text) PKIFailureInfo ::= BIT STRING { badAlg (0), -- unrecognized or unsupported Algorithm Identifier badRequest (2), -- transaction not permitted or supported badDataFormat (5), -- the data submitted has the wrong format timeNotAvailable (14), -- the TSA's time source is not available unacceptedPolicy (15), -- the requested TSA policy is not supported by the TSA unacceptedExtension (16), -- the requested extension is not supported by the TSA addInfoNotAvailable (17) -- the additional information requested could not be understood -- or is not available systemFailure (25) -- the request cannot be handled due to system failure } TimeStampToken ::= ContentInfo -- contentType is id-signedData -- content is SignedData -- eContentType within SignedData is id-ct-TSTInfo -- eContent within SignedData is TSTInfo
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ADD_INFO_NOT_AVAILABLE | The additional information requested could not be understood or is not available. | |||||||||
int | BAD_ALG | Unrecognized or unsupported algorithm identifier. | |||||||||
int | BAD_DATA_FORMAT | The data submitted has the wrong format. | |||||||||
int | BAD_REQUEST | The requested transaction is not permitted or supported. | |||||||||
int | GRANTED | The requested timestamp was granted. | |||||||||
int | GRANTED_WITH_MODS | The requested timestamp was granted with some modifications. | |||||||||
int | REJECTION | The requested timestamp was not granted. | |||||||||
int | REVOCATION_NOTIFICATION | Notification that a certificate revocation has occurred. | |||||||||
int | REVOCATION_WARNING | A warning that a certificate revocation is imminent. | |||||||||
int | SYSTEM_FAILURE | The request cannot be handled due to system failure. | |||||||||
int | TIME_NOT_AVAILABLE | The TSA's time source is not available. | |||||||||
int | UNACCEPTED_EXTENSION | The requested extension is not supported by the TSA. | |||||||||
int | UNACCEPTED_POLICY | The requested TSA policy is not supported by the TSA. | |||||||||
int | WAITING | The requested timestamp has not yet been processed. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the ASN.1 BER encoded timestamp token returned by the TSA.
| |||||||||||
Retrieve the failure code returned by the TSA.
| |||||||||||
Retrieve the status code returned by the TSA.
| |||||||||||
Retrieve the status messages returned by the TSA.
| |||||||||||
Retrieve the timestamp token returned by the TSA.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The additional information requested could not be understood or is not available.
Unrecognized or unsupported algorithm identifier.
The data submitted has the wrong format.
The requested transaction is not permitted or supported.
The requested timestamp was granted.
The requested timestamp was granted with some modifications.
The requested timestamp was not granted.
Notification that a certificate revocation has occurred.
A warning that a certificate revocation is imminent.
The request cannot be handled due to system failure.
The TSA's time source is not available.
The requested extension is not supported by the TSA.
The requested TSA policy is not supported by the TSA.
The requested timestamp has not yet been processed.
Retrieve the ASN.1 BER encoded timestamp token returned by the TSA.
Retrieve the failure code returned by the TSA.
Retrieve the status code returned by the TSA.
Retrieve the status messages returned by the TSA.
Retrieve the timestamp token returned by the TSA.