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
Timestamper
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ADD_INFO_NOT_AVAILABLE
The additional information requested could not be understood or is not available. |
| public static final int | BAD_ALG
Unrecognized or unsupported algorithm identifier. |
| public static final int | BAD_DATA_FORMAT
The data submitted has the wrong format. |
| public static final int | BAD_REQUEST
The requested transaction is not permitted or supported. |
| private static final Debug | |
| private byte[] | |
| private boolean[] | |
| public static final int | GRANTED
The requested timestamp was granted. |
| public static final int | GRANTED_WITH_MODS
The requested timestamp was granted with some modifications. |
| public static final int | REJECTION
The requested timestamp was not granted. |
| public static final int | REVOCATION_NOTIFICATION
Notification that a certificate revocation has occurred. |
| public static final int | REVOCATION_WARNING
A warning that a certificate revocation is imminent. |
| private int | |
| private String[] | |
| public static final int | SYSTEM_FAILURE
The request cannot be handled due to system failure. |
| public static final int | TIME_NOT_AVAILABLE
The TSA's time source is not available. |
| private TimestampToken | |
| private PKCS7 | |
| public static final int | UNACCEPTED_EXTENSION
The requested extension is not supported by the TSA. |
| public static final int | UNACCEPTED_POLICY
The requested TSA policy is not supported by the TSA. |
| public static final int | WAITING
The requested timestamp has not yet been processed. |
| Access | Constructor and Description |
|---|---|
| pack-priv | TSResponse(byte[]
A buffer containing the ASN.1 BER encoded response. tsReply)Constructs an object to store the response to a timestamp request. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: If null then no token was received.Retrieve the ASN.1 BER encoded timestamp token returned by the TSA. |
| public String | |
| public boolean[] | Returns: the failure info, or null if no failure code was received.Retrieve the failure info returned by the TSA. |
| public int | |
| public String | |
| public String[] | Returns: If null then no status messages were received.Retrieve the status messages returned by the TSA. |
| public TimestampToken | |
| public PKCS7 | Returns: If null then no token was received.Retrieve the timestamp token returned by the TSA. |
| private boolean | |
| private void |
| ADD_INFO_NOT_AVAILABLE | back to summary |
|---|---|
| public static final int ADD_INFO_NOT_AVAILABLE The additional information requested could not be understood or is not available. | |
| BAD_ALG | back to summary |
|---|---|
| public static final int BAD_ALG Unrecognized or unsupported algorithm identifier. | |
| BAD_DATA_FORMAT | back to summary |
|---|---|
| public static final int BAD_DATA_FORMAT The data submitted has the wrong format. | |
| BAD_REQUEST | back to summary |
|---|---|
| public static final int BAD_REQUEST The requested transaction is not permitted or supported. | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| encodedTsToken | back to summary |
|---|---|
| private byte[] encodedTsToken | |
| failureInfo | back to summary |
|---|---|
| private boolean[] failureInfo | |
| GRANTED | back to summary |
|---|---|
| public static final int GRANTED The requested timestamp was granted. | |
| GRANTED_WITH_MODS | back to summary |
|---|---|
| public static final int GRANTED_WITH_MODS The requested timestamp was granted with some modifications. | |
| REJECTION | back to summary |
|---|---|
| public static final int REJECTION The requested timestamp was not granted. | |
| REVOCATION_NOTIFICATION | back to summary |
|---|---|
| public static final int REVOCATION_NOTIFICATION Notification that a certificate revocation has occurred. | |
| REVOCATION_WARNING | back to summary |
|---|---|
| public static final int REVOCATION_WARNING A warning that a certificate revocation is imminent. | |
| status | back to summary |
|---|---|
| private int status | |
| statusString | back to summary |
|---|---|
| private String[] statusString | |
| SYSTEM_FAILURE | back to summary |
|---|---|
| public static final int SYSTEM_FAILURE The request cannot be handled due to system failure. | |
| TIME_NOT_AVAILABLE | back to summary |
|---|---|
| public static final int TIME_NOT_AVAILABLE The TSA's time source is not available. | |
| tstInfo | back to summary |
|---|---|
| private TimestampToken tstInfo | |
| tsToken | back to summary |
|---|---|
| private PKCS7 tsToken | |
| UNACCEPTED_EXTENSION | back to summary |
|---|---|
| public static final int UNACCEPTED_EXTENSION The requested extension is not supported by the TSA. | |
| UNACCEPTED_POLICY | back to summary |
|---|---|
| public static final int UNACCEPTED_POLICY The requested TSA policy is not supported by the TSA. | |
| WAITING | back to summary |
|---|---|
| public static final int WAITING The requested timestamp has not yet been processed. | |
| TSResponse | back to summary |
|---|---|
| pack-priv TSResponse(byte[] tsReply) throws IOException Constructs an object to store the response to a timestamp request.
| |
| getEncodedToken | back to summary |
|---|---|
| public byte[] getEncodedToken() Retrieve the ASN.1 BER encoded timestamp token returned by the TSA.
| |
| getFailureCodeAsText | back to summary |
|---|---|
| public String getFailureCodeAsText() | |
| getFailureInfo | back to summary |
|---|---|
| public boolean[] getFailureInfo() Retrieve the failure info returned by the TSA.
| |
| getStatusCode | back to summary |
|---|---|
| public int getStatusCode() Retrieve the status code returned by the TSA. | |
| getStatusCodeAsText | back to summary |
|---|---|
| public String getStatusCodeAsText() | |
| getStatusMessages | back to summary |
|---|---|
| public String[] getStatusMessages() Retrieve the status messages returned by the TSA.
| |
| getTimestampToken | back to summary |
|---|---|
| public TimestampToken getTimestampToken() | |
| getToken | back to summary |
|---|---|
| public PKCS7 getToken() Retrieve the timestamp token returned by the TSA.
| |
| isSet | back to summary |
|---|---|
| private boolean isSet(int position) | |
| parse | back to summary |
|---|---|
| private void parse(byte[] tsReply) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| TimestampException | back to summary |
|---|---|
| pack-priv TimestampException(String message) | |