|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.TSAClientBouncyCastle
public class TSAClientBouncyCastle
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.
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 | |
---|---|
protected byte[] |
getTimeStampToken(byte[] imprint)
Get timestamp token - Bouncy Castle request encoding / decoding layer |
byte[] |
getTimeStampToken(PdfPKCS7 caller,
byte[] imprint)
Get RFC 3161 timeStampToken. |
int |
getTokenSizeEstimate()
Get the token size estimate. |
protected byte[] |
getTSAResponse(byte[] requestBytes)
Get timestamp token - communications layer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String tsaURL
protected String tsaUsername
protected String tsaPassword
protected int tokSzEstimate
Constructor Detail |
---|
public TSAClientBouncyCastle(String url)
url
- String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")public TSAClientBouncyCastle(String url, String username, String password)
url
- String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")username
- String - user(account) namepassword
- String - passwordpublic TSAClientBouncyCastle(String url, String username, String password, int tokSzEstimate)
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 Detail |
---|
public int getTokenSizeEstimate()
getTokenSizeEstimate
in interface TSAClient
public byte[] getTimeStampToken(PdfPKCS7 caller, byte[] imprint) throws Exception
getTimeStampToken
in interface TSAClient
caller
- PdfPKCS7 - calling PdfPKCS7 instance (in case caller needs it)imprint
- byte[] - data imprint to be time-stamped
Exception
- - TSA request failedTSAClient.getTimeStampToken(com.lowagie.text.pdf.PdfPKCS7, byte[])
protected byte[] getTimeStampToken(byte[] imprint) throws Exception
Exception
protected byte[] getTSAResponse(byte[] requestBytes) throws Exception
Exception
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |