com.lowagie.text.pdf
public class TSAClientBouncyCastle extends Object implements TSAClient
Created by Aiken Sam, 2006-11-15, refactored by Martin Brunecky, 07/15/2007 for ease of subclassing.
Since: 2.1.6
| Field Summary | |
|---|---|
| protected int | tokSzEstimate Estimate of the received time stamp token |
| protected String | tsaPassword TSA password |
| protected String | tsaURL URL of the Time Stamp Authority |
| protected String | tsaUsername TSA Username |
| Constructor Summary | |
|---|---|
| TSAClientBouncyCastle(String url)
Creates an instance of a TSAClient that will use BouncyCastle. | |
| TSAClientBouncyCastle(String url, String username, String password)
Creates an instance of a TSAClient that will use BouncyCastle. | |
| TSAClientBouncyCastle(String url, String username, String password, int tokSzEstimate)
Constructor.
| |
| Method Summary | |
|---|---|
| byte[] | getTimeStampToken(PdfPKCS7 caller, byte[] imprint)
Get RFC 3161 timeStampToken.
|
| protected byte[] | getTimeStampToken(byte[] imprint)
Get timestamp token - Bouncy Castle request encoding / decoding layer |
| int | getTokenSizeEstimate()
Get the token size estimate.
|
| protected byte[] | getTSAResponse(byte[] requestBytes)
Get timestamp token - communications layer |
Parameters: url String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")
Parameters: url String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA") username String - user(account) name password String - password
Parameters: url String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA") username String - user(account) name password String - password tokSzEstimate int - estimated size of received time stamp token (DER encoded)
Parameters: caller PdfPKCS7 - calling PdfPKCS7 instance (in case caller needs it) imprint byte[] - data imprint to be time-stamped
Returns: byte[] - encoded, TSA signed data of the timeStampToken
Throws: Exception - TSA request failed
See Also: (com.lowagie.text.pdf.PdfPKCS7, byte[])
Returns: an estimate of the token size
Returns: - byte[] - TSA response, raw bytes (RFC 3161 encoded)