java.lang.Object | |
↳ | sun.security.timestamp.TSRequest |
This class provides a timestamp request, as defined in RFC 3161. The TimeStampReq ASN.1 type has the following definition:
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 } MessageImprint ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashedMessage OCTET STRING } TSAPolicyId ::= OBJECT IDENTIFIER
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a timestamp request for the supplied hash value..
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Request that the TSA include its signing certificate in the response.
| |||||||||||
Sets the Time-Stamp Protocol extensions.
| |||||||||||
Sets a nonce.
| |||||||||||
Sets an object identifier for the Time-Stamp Protocol policy.
| |||||||||||
Sets the Time-Stamp Protocol version.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a timestamp request for the supplied hash value..
hashValue | The hash value. This is the data to be timestamped. |
---|---|
hashAlgorithm | The name of the hash algorithm. |
Request that the TSA include its signing certificate in the response.
returnCertificate | True if the TSA should return its signing certificate. By default it is not returned. |
---|
Sets the Time-Stamp Protocol extensions.
extensions | The protocol extensions. |
---|
Sets a nonce. A nonce is a single-use random number.
nonce | The nonce value. |
---|
Sets an object identifier for the Time-Stamp Protocol policy.
Sets the Time-Stamp Protocol version.
version | The TSP version. |
---|