TSTInfo ::= SEQUENCE {
version INTEGER { v1(1) },
policy TSAPolicyId,
messageImprint MessageImprint,
-- MUST have the same value as the similar field in
-- TimeStampReq
serialNumber INTEGER,
-- Time-Stamping users MUST be ready to accommodate integers
-- up to 160 bits.
genTime GeneralizedTime,
accuracy Accuracy OPTIONAL,
ordering BOOLEAN DEFAULT FALSE,
nonce INTEGER OPTIONAL,
-- MUST be present if the similar field was present
-- in TimeStampReq. In that case it MUST have the same value.
tsa [0] GeneralName OPTIONAL,
extensions [1] IMPLICIT Extensions OPTIONAL }
Accuracy ::= SEQUENCE {
seconds INTEGER OPTIONAL,
millis [0] INTEGER (1..999) OPTIONAL,
micros [1] INTEGER (1..999) OPTIONAL }
Timestamper
| Modifier and Type | Field and Description |
|---|---|
| private Date | |
| private AlgorithmId | |
| private byte[] | |
| private BigInteger | |
| private ObjectIdentifier | |
| private BigInteger | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | TimestampToken(byte[]
A buffer containing the ASN.1 BER encoding of the
TSTInfo element defined in RFC 3161. timestampTokenInfo)Constructs an object to store a timestamp token. |
| Modifier and Type | Method and Description |
|---|---|
| public Date | Returns: The date and time when the timestamp was generated.Extract the date and time from the timestamp token. |
| public AlgorithmId | |
| public byte[] | |
| public BigInteger | |
| public String | |
| public BigInteger | |
| private void |
| genTime | back to summary |
|---|---|
| private Date genTime | |
| hashAlgorithm | back to summary |
|---|---|
| private AlgorithmId hashAlgorithm | |
| hashedMessage | back to summary |
|---|---|
| private byte[] hashedMessage | |
| nonce | back to summary |
|---|---|
| private BigInteger nonce | |
| policy | back to summary |
|---|---|
| private ObjectIdentifier policy | |
| serialNumber | back to summary |
|---|---|
| private BigInteger serialNumber | |
| version | back to summary |
|---|---|
| private int version | |
| TimestampToken | back to summary |
|---|---|
| public TimestampToken(byte[] timestampTokenInfo) throws IOException Constructs an object to store a timestamp token.
| |
| getDate | back to summary |
|---|---|
| public Date getDate() Extract the date and time from the timestamp token.
| |
| getHashAlgorithm | back to summary |
|---|---|
| public AlgorithmId getHashAlgorithm() | |
| getHashedMessage | back to summary |
|---|---|
| public byte[] getHashedMessage() | |
| getNonce | back to summary |
|---|---|
| public BigInteger getNonce() | |
| getPolicyID | back to summary |
|---|---|
| public String getPolicyID() | |
| getSerialNumber | back to summary |
|---|---|
| public BigInteger getSerialNumber() | |
| parse | back to summary |
|---|---|
| private void parse(byte[] timestampTokenInfo) throws IOException | |