Module org.refcodes.forwardsecrecy
Package org.refcodes.forwardsecrecy
Class LoopbackEncryptionService
java.lang.Object
org.refcodes.forwardsecrecy.AbstractEncryptionService
org.refcodes.forwardsecrecy.LoopbackEncryptionService
- All Implemented Interfaces:
Iterator<CipherVersion>
,CipherVersionGenerator<CipherVersion>
,EncryptionService
,org.refcodes.generator.Generator<CipherVersion>
Deprecated.
The
LoopbackEncryptionService
is an UNSECURE implementation of the
EncryptionService
managing the ciphers in the CipherVersion
in plan text. This implementation's mere purpose is to provide means to
easily set up a quick and dirty test setup. The
LoopbackDecryptionService
is the counterpart of the
LoopbackEncryptionService
which both work (insecurely) hand in hand.
The LoopbackEncryptionService
must not be used in production
environments!
-
Constructor Summary
ConstructorDescriptionLoopbackEncryptionService
(String aNamespace, EncryptionServer aEncryptionServer) Deprecated.To prevent accidental use in productive environment this insecure implementation of theEncryptionService
has been marked as being deprecated; please use only for testing purposes. -
Method Summary
Modifier and TypeMethodDescriptionprotected <CV extends CipherVersion>
CVtoEncryptedCipherVersion
(CV aDecyrptedCipherVersion) Deprecated.Methods inherited from class org.refcodes.forwardsecrecy.AbstractEncryptionService
hasNext, next, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
LoopbackEncryptionService
Deprecated.To prevent accidental use in productive environment this insecure implementation of theEncryptionService
has been marked as being deprecated; please use only for testing purposes.
-
-
Method Details
-
toEncryptedCipherVersion
@Deprecated protected <CV extends CipherVersion> CV toEncryptedCipherVersion(CV aDecyrptedCipherVersion) Deprecated.Hook factory method to be implemented by subclasses. The provided cipher is to be encrypted (e.g. with the public key of an asymmetric encryption approach) so that an Encryption-Server only receives encrypted data.- Specified by:
toEncryptedCipherVersion
in classAbstractEncryptionService
- Type Parameters:
CV
- The type of theCipherVersion
to be used.- Parameters:
aDecyrptedCipherVersion
- TheCipherVersion
to be encrypted.- Returns:
- The encrypted
CipherVersion
.
-
EncryptionService
has been marked as being deprecated; please use only for testing purposes.