Interface Decryptor

All Known Implementing Classes:
DecryptorImpl

public interface Decryptor
  • Method Details

    • decrypt

      String decrypt(String encryptedData) throws AtpDecryptException
      Decrypt encryptedData String.
      Parameters:
      encryptedData - String to be decrypted
      Returns:
      decrypted String
      Throws:
      AtpDecryptException - in case decryption problems.
    • decrypt

      String decrypt(String encryptedData, Object key) throws AtpDecryptException
      Decrypt encryptedData String.
      Parameters:
      encryptedData - String to be decrypted
      key - Key object
      Returns:
      decrypted String
      Throws:
      AtpDecryptException - in case decryption problems.
    • decryptIfEncrypted

      String decryptIfEncrypted(String encryptedData) throws AtpDecryptException
      Decrypt encryptedData String if it's encrypted.
      Parameters:
      encryptedData - String possibly encrypted
      Returns:
      decrypted String if encryptedData was really encrypted, otherwise returns original string
      Throws:
      AtpDecryptException - in case decryption problems.
    • decryptIfEncrypted

      String decryptIfEncrypted(String encryptedData, Object key) throws AtpDecryptException
      Decrypt encryptedData String if it's encrypted.
      Parameters:
      encryptedData - String possibly encrypted
      key - Key object
      Returns:
      decrypted String if encryptedData was really encrypted, otherwise returns original string
      Throws:
      AtpDecryptException - in case decryption problems.
    • isEncrypted

      boolean isEncrypted(String data)
      Check if String data parameter is encrypted or not.
      Parameters:
      data - String to check
      Returns:
      true if String is encrypted, otherwise false.
    • decryptEncryptedPlacesInString

      String decryptEncryptedPlacesInString(String text) throws AtpDecryptException
      Decrypt encrypted parts of String text (if any).
      Parameters:
      text - String possibly containing encrypted parts
      Returns:
      String decrypted
      Throws:
      AtpDecryptException - in case decryption problems.