Class TSAClientBouncyCastle
java.lang.Object
com.lowagie.text.pdf.TSAClientBouncyCastle
- All Implemented Interfaces:
TSAClient
Deprecated.
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.
- Since:
- 2.1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDeprecated.private StringDeprecated.private ProxyDeprecated.protected intDeprecated.Estimate of the received time stamp tokenprotected StringDeprecated.TSA passwordprotected StringDeprecated.URL of the Time Stamp Authorityprotected StringDeprecated.TSA Username -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates an instance of a TSAClient that will use BouncyCastle.TSAClientBouncyCastle(String url, String username, String password) Deprecated.Creates an instance of a TSAClient that will use BouncyCastle.TSAClientBouncyCastle(String url, String username, String password, int tokSzEstimate) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Get the MessageDigest.Deprecated.Gets Policy OID of TSA request.getProxy()Deprecated.Proxy object used for URL connections.protected byte[]getTimeStampToken(byte[] imprint) Deprecated.Get timestamp token - Bouncy Castle request encoding / decoding layerbyte[]getTimeStampToken(PdfPKCS7 caller, byte[] imprint) Deprecated.Get RFC 3161 timeStampToken.intDeprecated.Get the token size estimate.intDeprecated.Deprecated.protected byte[]getTSAResponse(byte[] requestBytes) Deprecated.Get timestamp token - communications layerDeprecated.Deprecated.private static booleanisNotEmpty(String arg) Deprecated.voidsetDigestName(String hashAlgorithm) Deprecated.voidDeprecated.Sets Policy OID of TSA request.voidDeprecated.Sets Proxy which will be used for URL connection.
-
Field Details
-
tsaURL
-
tsaUsername
-
tsaPassword
-
tokSzEstimate
protected int tokSzEstimateDeprecated.Estimate of the received time stamp token -
proxy
Deprecated. -
policy
Deprecated. -
digestName
Deprecated.
-
-
Constructor Details
-
TSAClientBouncyCastle
Deprecated.Creates an instance of a TSAClient that will use BouncyCastle.- Parameters:
url- String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")
-
TSAClientBouncyCastle
Deprecated.Creates an instance of a TSAClient that will use BouncyCastle.- Parameters:
url- String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")username- String - user(account) namepassword- String - password
-
TSAClientBouncyCastle
Deprecated.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).- Parameters:
url- String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")username- String - user(account) namepassword- String - passwordtokSzEstimate- int - estimated size of received time stamp token (DER encoded)
-
-
Method Details
-
isNotEmpty
Deprecated. -
getTokenSizeEstimate
public int getTokenSizeEstimate()Deprecated.Get the token size estimate. Returned value reflects the result of the last succesfull call, padded- Specified by:
getTokenSizeEstimatein interfaceTSAClient- Returns:
- an estimate of the token size
-
getMessageDigest
Deprecated.Get the MessageDigest. Default algorithm `SHA-1` used as per algorithm used without tsaClient- Specified by:
getMessageDigestin interfaceTSAClient- Returns:
- SHA-1 MessageDigest
- Throws:
GeneralSecurityException- a security problem- See Also:
-
getTimeStampToken
Deprecated.Get RFC 3161 timeStampToken. Method may return null indicating that timestamp should be skipped.- Specified by:
getTimeStampTokenin interfaceTSAClient- 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:
-
getTimeStampToken
-
getTSAResponse
-
getProxy
-
setProxy
Deprecated.Sets Proxy which will be used for URL connection.- Parameters:
aProxy- Proxy to set
-
getPolicy
-
setPolicy
Deprecated.Sets Policy OID of TSA request.- Parameters:
policy- oid
-
getTsaURL
Deprecated. -
getTsaUsername
Deprecated. -
getTsaPassword
Deprecated. -
getTokSzEstimate
public int getTokSzEstimate()Deprecated. -
getDigestName
Deprecated. -
setDigestName
Deprecated.
-