Class TSTInfo


  • public class TSTInfo
    extends Object
    As defined in Time-Stamp Protocol (TSP) (http://www.ietf.org/rfc/rfc3161.txt) 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 } TSAPolicyId ::= OBJECT IDENTIFIER "tsa [0] GeneralName OPTIONAL" is EXPLICIT and the word EXPLICIT is omitted.
    • Field Detail

      • ACCURACY

        public static final ASN1Sequence ACCURACY
        Accuracy ::= SEQUENCE { seconds INTEGER OPTIONAL, millis [0] INTEGER (1..999) OPTIONAL, micros [1] INTEGER (1..999) OPTIONAL }
    • Method Detail

      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • getAccuracy

        public int[] getAccuracy()
        Returns:
        Returns the accuracy.
      • getExtensions

        public Extensions getExtensions()
        Returns:
        Returns the extensions.
      • getGenTime

        public Date getGenTime()
        Returns:
        Returns the genTime.
      • getMessageImprint

        public MessageImprint getMessageImprint()
        Returns:
        Returns the messageImprint.
      • getNonce

        public BigInteger getNonce()
        Returns:
        Returns the nonce.
      • getOrdering

        public Boolean getOrdering()
        Returns:
        Returns the ordering.
      • getPolicy

        public String getPolicy()
        Returns:
        Returns the policy.
      • getSerialNumber

        public BigInteger getSerialNumber()
        Returns:
        Returns the serialNumber.
      • getTsa

        public GeneralName getTsa()
        Returns:
        Returns the tsa.
      • getVersion

        public int getVersion()
        Returns:
        Returns the version.