public interface KSISigningService extends Closeable
Modifier and Type | Method and Description |
---|---|
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.
|
Future<AggregationResponse> sign(DataHash dataHash, Long level) throws KSIException
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.List<KSISigningService> getSubSigningServices()
void registerAggregatorConfigurationListener(ConfigurationListener<AggregatorConfiguration> listener)
ConfigurationListener
<AggregatorConfiguration
>
for the KSISigningService. Each time KSISigningService's configuration is
updated, this listener is called.listener
- an instance of ConfigurationListener
<AggregatorConfiguration
>.Future<AggregatorConfiguration> getAggregationConfiguration()
ConfigurationListener
s
are called.AggregatorConfiguration
.Copyright © 2024 Guardtime. All rights reserved.