public final class KSIExtendingClientServiceAdapter extends Object implements KSIExtendingService
KSIExtenderClient so it can be used as KSIExtendingService.| Constructor and Description |
|---|
KSIExtendingClientServiceAdapter(KSIExtenderClient client) |
KSIExtendingClientServiceAdapter(KSIExtenderClient client,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Future<ExtensionResponse> |
extend(Date aggregationTime,
Date publicationTime)
Extends existing signatures.
|
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.
|
void |
registerExtenderConfigurationListener(ConfigurationListener<ExtenderConfiguration> listener)
Registers a new
ConfigurationListener<ExtenderConfiguration> for the client. |
String |
toString() |
public KSIExtendingClientServiceAdapter(KSIExtenderClient client)
public KSIExtendingClientServiceAdapter(KSIExtenderClient client, ExecutorService executorService)
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.public List<KSIExtendingService> getSubExtendingServices()
KSIExtendingServicegetSubExtendingServices in interface KSIExtendingServicepublic 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>.public Future<ExtenderConfiguration> getExtendingConfiguration()
KSIExtendingServiceConfigurationListeners
are called.getExtendingConfiguration in interface KSIExtendingServiceExtenderConfiguration.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024 Guardtime. All rights reserved.