|
iText 8.0.5 API
|
Time Stamp Authority Client interface implementation using Bouncy Castle org.bouncycastle.tsp package. More...
Public Member Functions |
|||
| TSAClientBouncyCastle (String url) | |||
| Creates an instance of a TSAClient that will use BouncyCastle. More... |
|||
| TSAClientBouncyCastle (String url, String username, String password) | |||
| Creates an instance of a TSAClient that will use BouncyCastle. More... |
|||
| TSAClientBouncyCastle (String url, String username, String password, int tokSzEstimate, String digestAlgorithm) | |||
| Constructor. More... |
|||
| virtual void | SetTSAInfo (ITSAInfoBouncyCastle tsaInfo) | ||
|
|||
| virtual int | GetTokenSizeEstimate () | ||
| Get the token size estimate. More... |
|||
| virtual String | GetTSAReqPolicy () | ||
| Gets the TSA request policy that will be used when retrieving timestamp token. More... |
|||
| virtual void | SetTSAReqPolicy (String tsaReqPolicy) | ||
| Sets the TSA request policy that will be used when retrieving timestamp token. More... |
|||
| virtual IDigest | GetMessageDigest () | ||
| Gets the MessageDigest to digest the data imprint More... |
|||
| virtual byte[] | GetTimeStampToken (byte[] imprint) | ||
| Get RFC 3161 timeStampToken. More... |
|||
Static Public Attributes |
|
| const String | DEFAULTHASHALGORITHM = "SHA-256" |
| The default value for the hash algorithm More... |
|
| const int | DEFAULTTOKENSIZE = 10240 |
| The default value for token size estimation. More... |
|
Package Functions |
|
| virtual byte[] | GetTSAResponse (byte[] requestBytes) |
| Get timestamp token - communications layer More... |
|
Package Attributes |
|
| String | tsaURL |
| URL of the Time Stamp Authority More... |
|
| String | tsaUsername |
| TSA Username More... |
|
| String | tsaPassword |
| TSA password More... |
|
| ITSAInfoBouncyCastle | tsaInfo |
| An interface that allows you to inspect the timestamp info. More... |
|
| int | tokenSizeEstimate = DEFAULTTOKENSIZE |
| Estimate of the received time stamp token More... |
|
| String | digestAlgorithm = DEFAULTHASHALGORITHM |
| Hash algorithm More... |
|
Time Stamp Authority Client interface implementation using Bouncy Castle org.bouncycastle.tsp package.
Time Stamp Authority Client interface implementation using Bouncy Castle org.bouncycastle.tsp package.
Created by Aiken Sam, 2006-11-15, refactored by Martin Brunecky, 07/15/2007 for ease of subclassing.
|
inline |
Creates an instance of a TSAClient that will use BouncyCastle.
| url | String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA") |
|
inline |
Creates an instance of a TSAClient that will use BouncyCastle.
| url | String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA") |
| username | String - user(account) name |
| password | String - password |
|
inline |
Constructor.
Constructor. Note the token size estimate is updated by each call, as the token size is not likely to change (as long as we call the same TSA using the same imprint length).
| url | Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA") |
| username | user(account) name, optional |
| password | password, optional if used in combination with username, the credentials will be used in basic authentication. Use only in combination with a https url to ensure encryption |
| tokSzEstimate | estimated size of received time stamp token (DER encoded) |
| digestAlgorithm | is a hash algorithm |
|
inlinevirtual |
Gets the MessageDigest to digest the data imprint
Implements iText.Signatures.ITSAClient.
|
inlinevirtual |
Get RFC 3161 timeStampToken.
Get RFC 3161 timeStampToken. Method may return null indicating that timestamp should be skipped.
| imprint | data imprint to be time-stamped |
Implements iText.Signatures.ITSAClient.
|
inlinevirtual |
Get the token size estimate.
Get the token size estimate. Returned value reflects the result of the last succesfull call, padded
Implements iText.Signatures.ITSAClient.
|
inlinevirtual |
Gets the TSA request policy that will be used when retrieving timestamp token.
null if not set
|
inlinepackagevirtual |
Get timestamp token - communications layer
| requestBytes | is a byte representation of TSA request |
|
inlinevirtual |
Sets the TSA request policy that will be used when retrieving timestamp token.
| tsaReqPolicy | policy id |
|
static |
The default value for the hash algorithm
|
static |
The default value for token size estimation.
|
package |
Hash algorithm
|
package |
Estimate of the received time stamp token
|
package |
An interface that allows you to inspect the timestamp info.
|
package |
TSA password
|
package |
URL of the Time Stamp Authority
|
package |
TSA Username