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
Timestamper
Modifier and Type | Field and Description |
---|---|
private X509Extension[] | |
private final AlgorithmId | |
private final byte[] | |
private BigInteger | |
private String | |
private boolean | |
private int |
Access | Constructor and Description |
---|---|
public | TSRequest(String tSAPolicyID, byte[]
The data to be timestamped. toBeTimeStamped, MessageDigest The MessageDigest of the hash algorithm to use. messageDigest)Constructs a timestamp request for the supplied data. |
Modifier and Type | Method and Description |
---|---|
public byte[] | |
public byte[] | |
public void | requestCertificate(boolean
True if the TSA should return its signing
certificate. By default, it is not returned. returnCertificate)Request that the TSA include its signing certificate in the response. |
public void | setExtensions(X509Extension[]
The protocol extensions. extensions)Sets the Time-Stamp Protocol extensions. |
public void | |
public void | setPolicyId(String
The policy object identifier. policyId)Sets an object identifier for the Time-Stamp Protocol policy. |
public void |
extensions | back to summary |
---|---|
private X509Extension[] extensions |
hashAlgorithmId | back to summary |
---|---|
private final AlgorithmId hashAlgorithmId |
hashValue | back to summary |
---|---|
private final byte[] hashValue |
nonce | back to summary |
---|---|
private BigInteger nonce |
policyId | back to summary |
---|---|
private String policyId |
returnCertificate | back to summary |
---|---|
private boolean returnCertificate |
version | back to summary |
---|---|
private int version |
TSRequest | back to summary |
---|---|
public TSRequest(String tSAPolicyID, byte[] toBeTimeStamped, MessageDigest messageDigest) throws NoSuchAlgorithmException Constructs a timestamp request for the supplied data.
|
encode | back to summary |
---|---|
public byte[] encode() throws IOException |
getHashedMessage | back to summary |
---|---|
public byte[] getHashedMessage() |
requestCertificate | back to summary |
---|---|
public void requestCertificate(boolean returnCertificate) Request that the TSA include its signing certificate in the response.
|
setExtensions | back to summary |
---|---|
public void setExtensions(X509Extension[] extensions) Sets the Time-Stamp Protocol extensions.
|
setNonce | back to summary |
---|---|
public void setNonce(BigInteger nonce) Sets a nonce. A nonce is a single-use random number.
|
setPolicyId | back to summary |
---|---|
public void setPolicyId(String policyId) Sets an object identifier for the Time-Stamp Protocol policy.
|
setVersion | back to summary |
---|---|
public void setVersion(int version) Sets the Time-Stamp Protocol version.
|