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
KSISigningClient
sign
in interface KSISigningClient
request
- instance of InputStream
that contains request.Future
containing KSI response.KSIClientException
SigningTCPClient.sign(InputStream)
public Future<TLVElement> extend(InputStream request) throws KSIClientException
KSIExtenderClient
extend
in interface KSIExtenderClient
request
- instance of InputStream
that contains request.Future
containing KSI response.KSIClientException
ExtenderTCPClient.extend(InputStream)
public void close()
public ServiceCredentials getServiceCredentials()
public PduVersion getPduVersion()
Copyright © 2024 Guardtime. All rights reserved.