Class TimeStampReq


  • public class TimeStampReq
    extends Object
    As defined in Time-Stamp Protocol (TSP) (http://www.ietf.org/rfc/rfc3161.txt) TimeStampReq ::= SEQUENCE { version INTEGER { v1(1) }, messageImprint MessageImprint, --a hash algorithm OID and the hash value of the data to be --time-stamped reqPolicy TSAPolicyId OPTIONAL, nonce INTEGER OPTIONAL, certReq BOOLEAN DEFAULT FALSE, extensions [0] IMPLICIT Extensions OPTIONAL } TSAPolicyId ::= OBJECT IDENTIFIER
    • 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.
      • getEncoded

        public byte[] getEncoded()
        Returns ASN.1 encoded form of this TimeStampReq.
        Returns:
        a byte array containing ASN.1 encoded form.
      • getCertReq

        public Boolean getCertReq()
        Returns:
        Returns the certReq.
      • getExtensions

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

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

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

        public String getReqPolicy()
        Returns:
        Returns the reqPolicy.
      • getVersion

        public int getVersion()
        Returns:
        Returns the version.