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 public class LoopbackEncryptionService extends AbstractEncryptionService
Deprecated.
To prevent accidental use in productive environment this insecure implementation of the EncryptionService has been marked as being deprecated; please use only for testing purposes.
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 Details

    • LoopbackEncryptionService

      @Deprecated public LoopbackEncryptionService(String aNamespace, EncryptionServer aEncryptionServer)
      Deprecated.
      To prevent accidental use in productive environment this insecure implementation of the EncryptionService 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 class AbstractEncryptionService
      Type Parameters:
      CV - The type of the CipherVersion to be used.
      Parameters:
      aDecyrptedCipherVersion - The CipherVersion to be encrypted.
      Returns:
      The encrypted CipherVersion.