DecryptionService
LoopbackDecryptionServiceImpl
, PublicKeyDecryptionServiceImpl
public abstract class AbstractDecryptionService extends Object implements DecryptionService
DecryptionService
implementations.Constructor | Description |
---|---|
AbstractDecryptionService(String aNamespace,
DecryptionServer aDecryptionServer) |
Constructs the service with the required services and configuration.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract String |
createMessage() |
Creates a message for which a signature is to be created in order to
authenticate for the retrieval of the cipher versions.
|
List<CipherVersion> |
getCipherVersions() |
Returns the currently available cipher versions.
|
void |
setCipherVersionsExpireTimeInMs(long aCipherVersionsExpireTimeInMs) |
Injection method for setting the the expire time (in milliseconds) after
which once loaded cipher versions expire.
|
protected abstract <CV extends CipherVersion> |
toDecryptedCipherVersion(CV aEncyrptedCipherVersion) |
Hook factory method to be implemented by subclasses.
|
protected abstract String |
toSignature(String aMessage) |
Creates a signature for the given message.
|
public AbstractDecryptionService(String aNamespace, DecryptionServer aDecryptionServer)
setCipherVersionsExpireTimeInMs(long)
.aNamespace
- The name space to which service belongsaDecryptionServer
- The server to which the service is being
"connected"public List<CipherVersion> getCipherVersions()
getCipherVersions
in interface DecryptionService
public void setCipherVersionsExpireTimeInMs(long aCipherVersionsExpireTimeInMs)
aCipherVersionsExpireTimeInMs
- The time in milliseconds after which
them loaded cipher versions expire and are reloaded. A value of 0
indicates that them cipher versions expire immediately. A value of
-1 indicate that them cipher versions expire never.protected abstract String toSignature(String aMessage)
aMessage
- The message for which a signature is to be generatedprotected abstract String createMessage()
protected abstract <CV extends CipherVersion> CV toDecryptedCipherVersion(CV aEncyrptedCipherVersion)
CV
- The type of the CipherVersion
to be used.aEncyrptedCipherVersion
- The CipherVersion
to be decrypted.CipherVersion
.Copyright © 2018. All rights reserved.