public class

TimestampToken

extends Object
java.lang.Object
   ↳ sun.security.timestamp.TimestampToken

Class Overview

This class provides the timestamp token info resulting from a successful timestamp request, as defined in RFC 3161. The timestampTokenInfo ASN.1 type has the following definition:


     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  }

 

See Also

Summary

Public Constructors
TimestampToken(byte[] timestampTokenInfo)
Constructs an object to store a timestamp token.
Public Methods
Date getDate()
Extract the date and time from the timestamp token.
AlgorithmId getHashAlgorithm()
byte[] getHashedMessage()
BigInteger getNonce()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TimestampToken (byte[] timestampTokenInfo)

Constructs an object to store a timestamp token.

Throws
IOException

Public Methods

public Date getDate ()

Extract the date and time from the timestamp token.

Returns
  • The date and time when the timestamp was generated.

public AlgorithmId getHashAlgorithm ()

public byte[] getHashedMessage ()

public BigInteger getNonce ()