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
KSIExtendingService
extend
in interface KSIExtendingService
aggregationTime
- 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()
KSIExtendingService
getSubExtendingServices
in interface KSIExtendingService
public void registerExtenderConfigurationListener(ConfigurationListener<ExtenderConfiguration> listener)
KSIExtendingService
ConfigurationListener
<ExtenderConfiguration
> for the client. Each time client's configuration
is updated, this listener is called.registerExtenderConfigurationListener
in interface KSIExtendingService
listener
- an instance of ConfigurationListener
<ExtenderConfiguration
>.public Future<ExtenderConfiguration> getExtendingConfiguration()
KSIExtendingService
ConfigurationListener
s
are called.getExtendingConfiguration
in interface KSIExtendingService
ExtenderConfiguration
.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2024 Guardtime. All rights reserved.