public interface DecryptionProvider extends org.refcodes.security.Decrypter<String,String,org.refcodes.security.DecryptionException>
DecryptionProvider
is bound to a namespace and is being used by
the business logic to decrypt data.
The DecryptionProvider
provides decrypting functionality as encrypted
data must be decrypted again by another service or system. This system must
now be able to retrieve all known ciphers versions (by a
DecryptionService
) for determining the correct cipher for decrypting
encrypted text (as encrypted text is prefixed by the cipher UID identifying
the cipher to use for decryption).
Modifier and Type | Method and Description |
---|---|
String |
toDecrypted(String aEncryptedText)
Encrypts a text with the latest known valid cipher.
|
String toDecrypted(String aEncryptedText) throws UnknownCipherUidException, NoCipherUidException
toDecrypted
in interface org.refcodes.security.Decrypter<String,String,org.refcodes.security.DecryptionException>
aEncryptedText
- The text to be encryptedUnknownCipherUidException
- in case the cipher UID prefixed to the
encrypted text is unknownNoCipherUidException
- in case no cipher UID was found prefixed to
the provided text.Copyright © 2016. All rights reserved.