public interface DecryptionProvider extends Decrypter<String,String,DecryptionException>
DecryptionProvideris bound to a namespace and is being used by the business logic to decrypt data.
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).
String toDecrypted(String aEncryptedText) throws UnknownCipherUidException, NoCipherUidException
aEncryptedText- The text to be encrypted
UnknownCipherUidException- in case the cipher UID prefixed to the encrypted text is unknown
NoCipherUidException- in case no cipher UID was found prefixed to the provided text.
Copyright © 2015. All rights reserved.