com.spire.pdf.interactive.digitalsignatures
Class TSAHttpService

java.lang.Object
  extended by com.spire.pdf.interactive.digitalsignatures.TSAHttpService
All Implemented Interfaces:
ITSAService

public class TSAHttpService
extends java.lang.Object
implements ITSAService

Time Stamp service implementation which must conform to RFC 3161.


Constructor Summary
TSAHttpService(java.lang.String url)
          Construct an instance of a TSAClient.
TSAHttpService(java.lang.String url, java.lang.String user, java.lang.String password)
          Construct an instance of a TSAClient.
 
Method Summary
 byte[] generate(byte[] signature)
          Generate timestamp token.
 

Constructor Detail

TSAHttpService

public TSAHttpService(java.lang.String url)
Construct an instance of a TSAClient.

Parameters:
url - Time Stamp Authority URL.

TSAHttpService

public TSAHttpService(java.lang.String url,
                      java.lang.String user,
                      java.lang.String password)
Construct an instance of a TSAClient.

Parameters:
url - Time Stamp Authority URL.
user - User(account).
password - Password.
Method Detail

generate

public byte[] generate(byte[] signature)
Generate timestamp token.

Specified by:
generate in interface ITSAService
Parameters:
signature - The value of signature field within SignerInfo. The value of messageImprint field within TimeStampToken shall be the hash of signature. Refrence RFC 3161 APPENDIX A.
Returns:
Timestamp which must conform to RFC 3161