public interface Signer extends Closeable
SignerBuilder class.| Modifier and Type | Method and Description |
|---|---|
Future<KSISignature> |
asyncSign(byte[] bytes)
Signs the byte array asynchronously.
|
Future<KSISignature> |
asyncSign(DataHash dataHash)
Signs the data hash asynchronously.
|
Future<KSISignature> |
asyncSign(DataHash dataHash,
long level)
This method is used to sign data hash asynchronously with user provided aggregation tree height.
|
Future<KSISignature> |
asyncSign(File file)
Signs the file asynchronously.
|
AggregatorConfiguration |
getAggregatorConfiguration()
Deprecated.
Deprecated since 4.10. Use
KSISigningService.getAggregationConfiguration()
in pair with KSISigningService.registerAggregatorConfigurationListener(ConfigurationListener) instead.
To acquire instance of KSISigningService which a KSI instance uses, call
getSigningService(). |
KSISigningService |
getSigningService()
Gets the signing service that the SDK was initialized with.
|
KSISignature |
sign(byte[] bytes)
Signs the byte array.
|
KSISignature |
sign(DataHash dataHash)
Signs the data hash.
|
KSISignature |
sign(DataHash dataHash,
long level)
Signs the data hash with user provided aggregation tree height.
|
KSISignature |
sign(File file)
Signs the file.
|
KSISignature sign(DataHash dataHash) throws KSIException
dataHash - instance of DataHash to sign, not null.KSISignature).KSIException - when error occurs (e.g. when communication with KSI service fails).KSISignature sign(DataHash dataHash, long level) throws KSIException
dataHash - instance of DataHash to sign. not null.level - aggregation tree height.KSISignatureKSIException - when error occurs (e.g when communication with KSI service fails)KSISignature sign(File file) throws KSIException
KSIBuilder.setDefaultSigningHashAlgorithm(HashAlgorithm).file - file to sign, not null.KSISignature).KSIException - when error occurs (e.g. when communication with KSI service fails).KSISignature sign(byte[] bytes) throws KSIException
KSIBuilder.setDefaultSigningHashAlgorithm(HashAlgorithm).bytes - bytes to sign, not null.KSISignature).KSIException - when error occurs (e.g. when communication with KSI service fails).Future<KSISignature> asyncSign(DataHash dataHash) throws KSIException
Future.getResult() to get the KSI
signature.dataHash - instance of DataHash to sign, not null.Future.KSIException - when error occurs (e.g. when communication with KSI service fails).Future<KSISignature> asyncSign(DataHash dataHash, long level) throws KSIException
Future.getResult() to get KSI signature.dataHash - instance of DataHash to sign. not null.level - aggregation tree height.FutureKSIException - when error occurs (e.g when communication with KSI service fails)Future<KSISignature> asyncSign(File file) throws KSIException
KSIBuilder.setDefaultSigningHashAlgorithm(HashAlgorithm).
Use method Future.getResult() to get the KSI signature.file - file to sign, not null.Future.KSIException - when error occurs (e.g. when communication with KSI service fails).Future<KSISignature> asyncSign(byte[] bytes) throws KSIException
KSIBuilder.setDefaultSigningHashAlgorithm(HashAlgorithm).
Use method Future.getResult() to get the KSI signature.bytes - file to sign, not null.FutureKSIException - when error occurs (e.g. when communication with KSI service fails).KSISigningService getSigningService()
@Deprecated AggregatorConfiguration getAggregatorConfiguration() throws KSIException
KSISigningService.getAggregationConfiguration()
in pair with KSISigningService.registerAggregatorConfigurationListener(ConfigurationListener) instead.
To acquire instance of KSISigningService which a KSI instance uses, call
getSigningService().PduVersion.V2 is used.UnsupportedOperationException - if KSI is initialized with a service not a client.KSIExceptionCopyright © 2024 Guardtime. All rights reserved.