Package org.refcodes.forwardsecrecy
Class LoopbackEncryptionServiceImpl
- java.lang.Object
-
- org.refcodes.forwardsecrecy.AbstractEncryptionService
-
- org.refcodes.forwardsecrecy.LoopbackEncryptionServiceImpl
-
- All Implemented Interfaces:
java.util.Iterator<CipherVersion>
,CipherVersionGenerator<CipherVersion>
,EncryptionService
,org.refcodes.generator.Generator<CipherVersion>
@Deprecated public class LoopbackEncryptionServiceImpl extends AbstractEncryptionService
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.TheLoopbackEncryptionServiceImpl
is an UNSECURE implementation of theEncryptionService
managing the ciphers in theCipherVersion
in plan text. This implementation's mere purpose is to provide means to easily set up a quick and dirty test setup. TheLoopbackDecryptionServiceImpl
is the counterpart of theLoopbackEncryptionServiceImpl
which both work (insecurely) hand in hand.The
LoopbackEncryptionServiceImpl
must not be used in production environments!
-
-
Constructor Summary
Constructors Constructor Description LoopbackEncryptionServiceImpl(java.lang.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected <CV extends CipherVersion>
CVtoEncryptedCipherVersion(CV aDecyrptedCipherVersion)
Deprecated.-
Methods inherited from class org.refcodes.forwardsecrecy.AbstractEncryptionService
hasNext, next, remove
-
-
-
-
Constructor Detail
-
LoopbackEncryptionServiceImpl
@Deprecated public LoopbackEncryptionServiceImpl(java.lang.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 Detail
-
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
.
-
-