public class HAService extends Object implements KSISigningService, KSIExtendingService
SigningHAService and ExtendingHAService.| Modifier and Type | Class and Description |
|---|---|
static class |
HAService.Builder
Builds the
SigningHAService. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes signingHaService and extenderHaService.
|
Future<ExtensionResponse> |
extend(Date aggregationTime,
Date publicationTime)
Extends existing signatures.
|
Future<AggregatorConfiguration> |
getAggregationConfiguration()
Makes the KSISigningService ask for configuration update.
|
Future<ExtenderConfiguration> |
getExtendingConfiguration()
Makes the client ask for configuration update.
|
List<KSIExtendingService> |
getSubExtendingServices()
Gets the subclients in case of the implementation that combines multiple clients.
|
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. |
void |
registerExtenderConfigurationListener(ConfigurationListener<ExtenderConfiguration> listener)
Registers a new
ConfigurationListener<ExtenderConfiguration> for the client. |
Future<AggregationResponse> |
sign(DataHash dataHash,
Long level)
Creates a new KSI signature.
|
String |
toString() |
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.SigningHAService.sign(DataHash, Long)public Future<ExtensionResponse> extend(Date aggregationTime, Date publicationTime) throws KSIException
KSIExtendingServiceextend in interface KSIExtendingServiceaggregationTime - aggregation time of the existing signature.publicationTime - publication time to which the existing signature is to be extended.ExtensionResponseFuture containing calendar chains needed to extend the signature.KSIException - in case any error occurs.ExtendingHAService.extend(Date, Date)public 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>.SigningHAService.registerAggregatorConfigurationListener(ConfigurationListener)public Future<AggregatorConfiguration> getAggregationConfiguration()
KSISigningServiceConfigurationListeners
are called.getAggregationConfiguration in interface KSISigningServiceAggregatorConfiguration.SigningHAService.getAggregationConfiguration()public void registerExtenderConfigurationListener(ConfigurationListener<ExtenderConfiguration> listener)
KSIExtendingServiceConfigurationListener<ExtenderConfiguration> for the client. Each time client's configuration
is updated, this listener is called.registerExtenderConfigurationListener in interface KSIExtendingServicelistener - an instance of ConfigurationListener<ExtenderConfiguration>.ExtendingHAService.registerExtenderConfigurationListener(ConfigurationListener)public Future<ExtenderConfiguration> getExtendingConfiguration()
KSIExtendingServiceConfigurationListeners
are called.getExtendingConfiguration in interface KSIExtendingServiceExtenderConfiguration.ExtendingHAService.getExtendingConfiguration()public List<KSISigningService> getSubSigningServices()
KSISigningServicegetSubSigningServices in interface KSISigningServiceSigningHAService.getSubSigningServices()public List<KSIExtendingService> getSubExtendingServices()
KSIExtendingServicegetSubExtendingServices in interface KSIExtendingServiceExtendingHAService.getSubExtendingServices()public void close()
close in interface Closeableclose in interface AutoCloseableSigningHAService.close(),
ExtendingHAService.close()Copyright © 2024 Guardtime. All rights reserved.