Interface Decryptor<T,R>

Type Parameters:
T - the generic type of the input to decrypt
R - the generic type of the result
All Known Subinterfaces:
ByteArrayDecryptor, FileDecryptor, GenericObjectDecryptor<R>, IntegerDecryptor, StringDecryptor

public interface Decryptor<T,R>
The generic functional interface Decryptor can decrypt an object of type <T> (that was previously encrypted) and return the decrypted result as object of type <R>.
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(T encrypted)
    Decrypt the given encrypted object.
  • Method Details

    • decrypt

      R decrypt(T encrypted) throws Exception
      Decrypt the given encrypted object.
      Parameters:
      encrypted - The object to decrypt.
      Returns:
      The decrypted object
      Throws:
      Exception - is thrown if decryption fails.