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 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.KSISigningService.sign(DataHash, Long)
public List<KSISigningService> getSubSigningServices()
KSISigningService
getSubSigningServices
in interface KSISigningService
public 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 KSISigningService
listener
- may not be null.public Future<AggregatorConfiguration> getAggregationConfiguration()
getAggregationConfiguration
in interface KSISigningService
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2024 Guardtime. All rights reserved.