public class TCPTLSProxyTimeStampProcessor15 extends TCPTSPTimeStampProcessor
DEFAULT_TSP_TCP_PORT, host_, port_
PROPERTY
Constructor and Description |
---|
TCPTLSProxyTimeStampProcessor15(Socket proxySocket,
String tsaHost,
int tsaPort,
int tsaTimeout)
Constructor setting proxy socket and the host and port of the timestamp
server.
|
TCPTLSProxyTimeStampProcessor15(String proxyHost,
int proxyPort,
int proxyTimeout,
String tsaHost,
int tsaPort,
int tsaTimeout)
Constructor sets proxy host and port as well as host and port of the
timestamp server.
|
Modifier and Type | Method and Description |
---|---|
void |
addClientKeyAndCert(X509Certificate[] certs,
PrivateKey key)
This method can be used to add a certificate (chain) and private key if the
timestamp server requires SSL/TSL client authentication.
|
void |
addTrustedServerCert(X509Certificate cert)
Adds a server certificate used for establishing SSL/TSL connections.
|
TimeStampToken |
timeStamp(OctetStreamData data)
Creates a time-stamp on the data provided by sending a corresponding
time-stamp request to a time-stamping authority (TSA) and returning the
time-stamp token obtained from the TSA.
|
calculateMessageImprint, createTimeStampReq
public TCPTLSProxyTimeStampProcessor15(String proxyHost, int proxyPort, int proxyTimeout, String tsaHost, int tsaPort, int tsaTimeout) throws TimeStampException
proxyPort
- The proxy port.proxyHost
- The proxy host.proxyTimeout
- The proxy timeout.tsaHost
- The TSA host.tsaPort
- The TSA port.tsaTimeout
- The TSA timeout.TimeStampException
- If an error occurs on creating the proxy socket or connecting to
it.public TCPTLSProxyTimeStampProcessor15(Socket proxySocket, String tsaHost, int tsaPort, int tsaTimeout)
proxySocket
- The proxy socket.tsaHost
- The TSA host.tsaPort
- The TSA port.tsaTimeout
- The timeout.public TimeStampToken timeStamp(OctetStreamData data) throws TimeStampException
TimeStampProcessor
timeStamp
in interface TimeStampProcessor
timeStamp
in class TCPTSPTimeStampProcessor
data
- the data to be time stampedTimeStampException
- if time-stamping failedTimeStampProcessor.timeStamp(OctetStreamData)
public void addClientKeyAndCert(X509Certificate[] certs, PrivateKey key)
certs
- The client certificate (chain).key
- The private key of the SSL client.public void addTrustedServerCert(X509Certificate cert)
cert
- The certificate of a trusted timestmp server.© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC