DigiStamp.com

dgs.tlkt
Class TstInfo

java.lang.Object
  extended bydgs.tlkt.TstInfo

public final class TstInfo
extends java.lang.Object

TSTInfo structure defined for the Time Stamp Protocol (TSP) in IETF RFC3161.
Access/mutators demonstrate the subset of fields supported by the DigiStamp toolkit.


Method Summary
 byte[] asEncoded()
          This method returns a DER encoded TSTInfo.
 java.math.BigInteger getAccuracyMicros()
          TSP Accuracy microseconds units.
 java.math.BigInteger getAccuracyMillis()
          TSP Accuracy millisecond units.
 java.math.BigInteger getAccuracySeconds()
          TSP Accuracy in seconds.
 java.lang.String getAlgorithmIdentifier()
          Algorithm that was used to create the hash of the time stamp data.
 java.util.Calendar getGeneralizedTime()
          TSP genTime.
 byte[] getHashedMessage()
          TSP hashedMessage.
 java.math.BigInteger getNonce()
          TSP nonce.
 java.lang.String getPolicy()
          TSP policy OID identifier.
 java.math.BigInteger getSerial()
          TSP Serial Number.
 java.math.BigInteger getVersion()
          TSP version Current version of IETF RFC3161 is 1.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asEncoded

public byte[] asEncoded()
                 throws ExceptionDgsEncode
This method returns a DER encoded TSTInfo.

Returns:
byte[]
Throws:
ExceptionDgsEncode

getAccuracyMicros

public java.math.BigInteger getAccuracyMicros()
TSP Accuracy microseconds units.
represents number of micro seconds. Can be null.

Returns:
java.math.BigInteger

getAccuracyMillis

public java.math.BigInteger getAccuracyMillis()
TSP Accuracy millisecond units.
represents number of milli seconds. Can be null.

Returns:
java.math.BigInteger

getAccuracySeconds

public java.math.BigInteger getAccuracySeconds()
TSP Accuracy in seconds.
represents number of seconds

Returns:
java.math.BigInteger

getAlgorithmIdentifier

public java.lang.String getAlgorithmIdentifier()
Algorithm that was used to create the hash of the time stamp data. TSP Algorithm Identifier. For example, SHA-1

Returns:
java.lang.String

getGeneralizedTime

public java.util.Calendar getGeneralizedTime()
TSP genTime. the time at which the time-stamp token has been created by the TSA. It is expressed as UTC time (Coordinated Universal Time) to reduce confusion with the local time zone use. The syntax is: YYYYMMDDhhmmss[.s...]Z
Example: 19990609001326.343Z

Returns:
java.util.Calendar

getHashedMessage

public byte[] getHashedMessage()
TSP hashedMessage. The hash of the user's document.

Returns:
byte[]

getNonce

public java.math.BigInteger getNonce()
TSP nonce. The nonce, if included, allows the client to verify the timeliness of the response when no local clock is available. The nonce is a large random number with a high probability that the client generates it only once (e.g., a 64 bit integer). In such a case the same nonce value MUST be included in the response, otherwise the response shall be rejected.

Returns:
java.math.BigInteger

getPolicy

public java.lang.String getPolicy()
TSP policy OID identifier. Indicates the TSA policy under which the TimeStampToken is provided.

Returns:
java.lang.String

getSerial

public java.math.BigInteger getSerial()
TSP Serial Number. The Serial Number field is an integer assigned by the TSA to each TimeStampToken. It MUST be unique for each TimeStampToken issued by a given TSA (i.e., the TSA name and serial number identify a unique TimeStampToken).


getVersion

public java.math.BigInteger getVersion()
TSP version Current version of IETF RFC3161 is 1.

Returns:
java.math.BigInteger

Copyright 2000-2008 DigiStamp, Inc.