public class TimestampToken
extends java.lang.Object
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| Constructor and Description |
|---|
TimestampToken(byte[] timestampTokenInfo)
Constructs an object to store a timestamp token.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getDate()
Extract the date and time from the timestamp token.
|
com.tencent.kona.sun.security.x509.AlgorithmId |
getHashAlgorithm() |
byte[] |
getHashedMessage() |
java.math.BigInteger |
getNonce() |
java.lang.String |
getPolicyID() |
java.math.BigInteger |
getSerialNumber() |
public TimestampToken(byte[] timestampTokenInfo)
throws java.io.IOException
timestampTokenInfo - A buffer containing the ASN.1 BER encoding of the
TSTInfo element defined in RFC 3161.java.io.IOExceptionpublic java.util.Date getDate()
public com.tencent.kona.sun.security.x509.AlgorithmId getHashAlgorithm()
public byte[] getHashedMessage()
public java.math.BigInteger getNonce()
public java.lang.String getPolicyID()
public java.math.BigInteger getSerialNumber()