Interface DecryptionService
-
- All Known Implementing Classes:
AbstractDecryptionService
,LoopbackDecryptionService
,PublicKeyDecryptionService
public interface DecryptionService
ADecryptionService
is bound to a single namespace and provides cipher versions required for decrypting text by theDecryptionProvider
.The
DecryptionService
may make use of aDecryptionServer
managing theCipherVersion
instances per namespace.Depending on the implementation, the
DecryptionService
has a private key for an asymmetric encryption approach whose public counterpart is used by theEncryptionService
. This private key then is used to decrypt the ciphers form the retrievedCipherVersion
instances.A
DecryptionServer
's wrapper may be hooked on top of theDecryptionServer
containing public keys known as being trusted and the private key for decrypting ciphers being encrypted by theEncryptionService
. When cipher versions are being requested by aDecryptionService
from the wrappedDecryptionServer
, theDecryptionService
authorizes itself by signing a message with a signature passed to theDecryptionServer
. In case the message's signature is verified by theDecryptionServer
with one of its trusted public keys, then the public key in question is used by theDecryptionServer
for encrypting theCipherVersion
instances being transmitted to theDecryptionService
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<CipherVersion>
getCipherVersions()
Returns the currently available cipher versions.
-
-
-
Method Detail
-
getCipherVersions
List<CipherVersion> getCipherVersions()
Returns the currently available cipher versions.- Returns:
- A list with the currently known cipher versions.
-
-