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
KSISigningServicesign in interface KSISigningServicedataHash - 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()
KSISigningServicegetSubSigningServices in interface KSISigningServicepublic void registerAggregatorConfigurationListener(ConfigurationListener<AggregatorConfiguration> listener)
KSISigningServiceConfigurationListener<AggregatorConfiguration>
for the KSISigningService. Each time KSISigningService's configuration is
updated, this listener is called.registerAggregatorConfigurationListener in interface KSISigningServicelistener - an instance of ConfigurationListener<AggregatorConfiguration>.public Future<AggregatorConfiguration> getAggregationConfiguration()
KSISigningServiceConfigurationListeners
are called.getAggregationConfiguration in interface KSISigningServiceAggregatorConfiguration.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024 Guardtime. All rights reserved.