public class SigningHAService extends Object implements KSISigningService
| Modifier and Type | Class and Description |
|---|---|
static class |
SigningHAService.Builder
Builds the
SigningHAService. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the subservices.
|
Future<AggregatorConfiguration> |
getAggregationConfiguration()
Invokes a configuration for all the subservices.
|
List<KSISigningService> |
getSubSigningServices()
Gets all the subservices in case of the implementation that combines multiple KSISigningServices.
|
void |
registerAggregatorConfigurationListener(ConfigurationListener<AggregatorConfiguration> listener)
Registers configuration listeners that will be called if this
SigningHAService's configuration changes. |
Future<AggregationResponse> |
sign(DataHash dataHash,
Long level)
Creates a non-blocking signing request.
|
String |
toString() |
public Future<AggregationResponse> sign(DataHash dataHash, Long level) throws KSIException
sign 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.KSISigningService.sign(DataHash, Long)public List<KSISigningService> getSubSigningServices()
KSISigningServicegetSubSigningServices in interface KSISigningServicepublic void registerAggregatorConfigurationListener(ConfigurationListener<AggregatorConfiguration> listener)
SigningHAService's configuration changes. They will not be
called if subservice's configuration changes in a way that does not change the consolidated configuration. To get detailed
info about subservices' configurations one should register their own listeners directly on subservices. Listener will
be called instantaneously once with the latest consolidation result as part of the registration if the latest result is
not null.registerAggregatorConfigurationListener in interface KSISigningServicelistener - may not be null.public Future<AggregatorConfiguration> getAggregationConfiguration()
getAggregationConfiguration in interface KSISigningServicepublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2024 Guardtime. All rights reserved.