public class InMemoryEncryptionServerImpl extends Object implements EncryptionServer
InMemoryEncryptionServerImpl is a non-persisting implementation
of the EncryptionServer managing the CipherVersion instances
in memory only. This implementation provides means to easily set up a quick
and dirty test setup. The InMemoryDecryptionServerImpl is the
counterpart of the InMemoryEncryptionServerImpl which both work (not
doing any persistence) hand in hand.| Constructor and Description |
|---|
InMemoryEncryptionServerImpl(InMemoryDecryptionServerImpl aDecryptionServer)
Constructs the server with the provided decryption server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCipherVersion(String aNamespace,
CipherVersion aCipherVersion)
Adds a
CipherVersion to the EncryptionServer. |
public InMemoryEncryptionServerImpl(InMemoryDecryptionServerImpl aDecryptionServer)
aDecryptionServer - The decryption server to be used simulating a
cipher repository of some kindpublic void addCipherVersion(String aNamespace, CipherVersion aCipherVersion) throws CipherUidAlreadyInUseException
CipherVersion to the EncryptionServer.addCipherVersion in interface EncryptionServeraNamespace - The namespace for which to add the cipheraCipherVersion - The CipherVersion to be added.CipherUidAlreadyInUseException - in case the given cipher UID has
already been used.Copyright © 2018. All rights reserved.