Module org.refcodes.forwardsecrecy
Package org.refcodes.forwardsecrecy
Class LoopbackDecryptionService
- java.lang.Object
-
- org.refcodes.forwardsecrecy.AbstractDecryptionService
-
- org.refcodes.forwardsecrecy.LoopbackDecryptionService
-
- All Implemented Interfaces:
DecryptionService
@Deprecated public class LoopbackDecryptionService extends AbstractDecryptionService
Deprecated.To prevent accidental use in productive environment this insecure implementation of theDecryptionService
has been marked as being deprecated; please use only for testing purposes.TheLoopbackDecryptionService
is an UNSECURE implementation of theDecryptionService
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. TheLoopbackDecryptionService
is the counterpart of theLoopbackEncryptionService
which both work (insecurely) hand in hand.The
LoopbackDecryptionService
must not be used in production environments!
-
-
Constructor Summary
Constructors Constructor Description LoopbackDecryptionService(String aNamespace, InMemoryDecryptionServer aDecryptionServer)
Deprecated.To prevent accidental use in productive environment this insecure implementation of theDecryptionService
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 String
createMessage()
Deprecated.Creates a message for which a signature is to be created in order to authenticate for the retrieval of the cipher versions.protected <CV extends CipherVersion>
CVtoDecryptedCipherVersion(CV aEncryptedCipherVersion)
Deprecated.To prevent accidental use in productive environment this insecure implementation of theDecryptionService
has been marked as being deprecated; please use only for testing purposes.protected String
toSignature(String aMessage)
Deprecated.Creates a signature for the given message.-
Methods inherited from class org.refcodes.forwardsecrecy.AbstractDecryptionService
getCipherVersions, setCipherVersionsExpireTimeInMs
-
-
-
-
Constructor Detail
-
LoopbackDecryptionService
@Deprecated public LoopbackDecryptionService(String aNamespace, InMemoryDecryptionServer aDecryptionServer)
Deprecated.To prevent accidental use in productive environment this insecure implementation of theDecryptionService
has been marked as being deprecated; please use only for testing purposes.
-
-
Method Detail
-
toSignature
protected String toSignature(String aMessage)
Deprecated.Creates a signature for the given message.- Specified by:
toSignature
in classAbstractDecryptionService
- Parameters:
aMessage
- The message for which a signature is to be generated- Returns:
- The signature for the message
-
createMessage
protected String createMessage()
Deprecated.Creates a message for which a signature is to be created in order to authenticate for the retrieval of the cipher versions. A decryption server should deny any requests to get cipher versions in case the same message is used twice.- Specified by:
createMessage
in classAbstractDecryptionService
- Returns:
- The message
-
toDecryptedCipherVersion
@Deprecated protected <CV extends CipherVersion> CV toDecryptedCipherVersion(CV aEncryptedCipherVersion)
Deprecated.To prevent accidental use in productive environment this insecure implementation of theDecryptionService
has been marked as being deprecated; please use only for testing purposes.Hook factory method to be implemented by subclasses. The provided cipher is to be decrypted (e.g. with the private key of an asymmetric encryption approach) so that an decryption server only receives encrypted data. CAUTION: The encryptedCipherVersion
argument is returned unmodified (not decrypted!). Please overwrite this method with a decrypting one!- Specified by:
toDecryptedCipherVersion
in classAbstractDecryptionService
- Type Parameters:
CV
- The type of theCipherVersion
to be used.- Parameters:
aEncryptedCipherVersion
- TheCipherVersion
to be decrypted.- Returns:
- The decrypted
CipherVersion
.
-
-