Class TimeStampReq
java.lang.Object
org.apache.harmony.security.x509.tsp.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
-
Field Summary
Fields Modifier and Type Field Description static ASN1SequenceASN1 -
Constructor Summary
Constructors Constructor Description TimeStampReq(int version, MessageImprint messageImprint, String reqPolicy, BigInteger nonce, Boolean certReq, Extensions extensions) -
Method Summary
Modifier and Type Method Description BooleangetCertReq()byte[]getEncoded()Returns ASN.1 encoded form of this TimeStampReq.ExtensionsgetExtensions()MessageImprintgetMessageImprint()BigIntegergetNonce()StringgetReqPolicy()intgetVersion()StringtoString()Returns a string containing a concise, human-readable description of this object.
-
Field Details
-
ASN1
-
-
Constructor Details
-
TimeStampReq
public TimeStampReq(int version, MessageImprint messageImprint, String reqPolicy, BigInteger nonce, Boolean certReq, Extensions extensions)
-
-
Method Details
-
toString
Description copied from class:ObjectReturns 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
toStringmethod if you intend implementing your owntoStringmethod. -
getEncoded
public byte[] getEncoded()Returns ASN.1 encoded form of this TimeStampReq.- Returns:
- a byte array containing ASN.1 encoded form.
-
getCertReq
- Returns:
- Returns the certReq.
-
getExtensions
- Returns:
- Returns the extensions.
-
getMessageImprint
- Returns:
- Returns the messageImprint.
-
getNonce
- Returns:
- Returns the nonce.
-
getReqPolicy
- Returns:
- Returns the reqPolicy.
-
getVersion
public int getVersion()- Returns:
- Returns the version.
-