public final class KSISigningClientServiceAdapter extends Object implements KSISigningService
KSISigningClient
so it can be used as KSISigningService
.Constructor and Description |
---|
KSISigningClientServiceAdapter(KSISigningClient client) |
KSISigningClientServiceAdapter(KSISigningClient client,
ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Future<AggregatorConfiguration> |
getAggregationConfiguration()
Makes the KSISigningService ask for configuration update.
|
List<KSISigningService> |
getSubSigningServices()
Gets all the subservices in case of the implementation that combines multiple KSISigningServices.
|
void |
registerAggregatorConfigurationListener(ConfigurationListener<AggregatorConfiguration> listener)
Registers a new
ConfigurationListener <AggregatorConfiguration >
for the KSISigningService. |
Future<AggregationResponse> |
sign(DataHash dataHash,
Long level)
Creates a new KSI signature.
|
String |
toString() |
public KSISigningClientServiceAdapter(KSISigningClient client)
public KSISigningClientServiceAdapter(KSISigningClient client, ExecutorService executorService)
public Future<AggregationResponse> sign(DataHash dataHash, Long level) throws KSIException
KSISigningService
sign
in interface KSISigningService
dataHash
- instance of DataHash
to be signed.level
- the dataHash's level in the local aggregation tree.AggregationResponseFuture
containing Aggregation response data.KSIException
- in case any error occurs.public List<KSISigningService> getSubSigningServices()
KSISigningService
getSubSigningServices
in interface KSISigningService
public void registerAggregatorConfigurationListener(ConfigurationListener<AggregatorConfiguration> listener)
KSISigningService
ConfigurationListener
<AggregatorConfiguration
>
for the KSISigningService. Each time KSISigningService's configuration is
updated, this listener is called.registerAggregatorConfigurationListener
in interface KSISigningService
listener
- an instance of ConfigurationListener
<AggregatorConfiguration
>.public Future<AggregatorConfiguration> getAggregationConfiguration()
KSISigningService
ConfigurationListener
s
are called.getAggregationConfiguration
in interface KSISigningService
AggregatorConfiguration
.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2024 Guardtime. All rights reserved.