public class TCPClient extends Object implements KSISigningClient, KSIExtenderClient
| Constructor and Description |
|---|
TCPClient(TCPClientSettings signingSettings)
Deprecated.
Use
SigningTCPClient(TCPClientSettings) or TCPClient(TCPClientSettings, TCPClientSettings)
instead.
WARNING! Using this constructor only configures the aggregator connection and the extending will not be usable. |
TCPClient(TCPClientSettings signingSettings,
TCPClientSettings extendingSettings) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes both the signing client and extending client.
|
Future<TLVElement> |
extend(InputStream request)
Extends the existing signatures.
|
PduVersion |
getPduVersion()
Gets the PDU format version of the client.
|
ServiceCredentials |
getServiceCredentials()
Gets the service credentials used by this client.
|
Future<TLVElement> |
sign(InputStream request)
Creates new KSI signature.
|
String |
toString() |
@Deprecated public TCPClient(TCPClientSettings signingSettings)
SigningTCPClient(TCPClientSettings) or TCPClient(TCPClientSettings, TCPClientSettings)
instead.
WARNING! Using this constructor only configures the aggregator connection and the extending will not be usable.signingSettings - settings for the aggregator connection.public TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings)
signingSettings - settings for the aggregator connection.extendingSettings - settings for the extender connection.public Future<TLVElement> sign(InputStream request) throws KSIClientException
KSISigningClientsign in interface KSISigningClientrequest - instance of InputStream that contains request.Future containing KSI response.KSIClientExceptionSigningTCPClient.sign(InputStream)public Future<TLVElement> extend(InputStream request) throws KSIClientException
KSIExtenderClientextend in interface KSIExtenderClientrequest - instance of InputStream that contains request.Future containing KSI response.KSIClientExceptionExtenderTCPClient.extend(InputStream)public void close()
public ServiceCredentials getServiceCredentials()
public PduVersion getPduVersion()
Copyright © 2024 Guardtime. All rights reserved.