Interface EncryptionService

All Known Implementing Classes:
EncryptionServiceImpl

public interface EncryptionService
Service providing useful methods to deal with data encryption/decryption.
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(String valueToBeDecrypted)
    Returns the provided value once it has been decrypted.
    encrypt(String valueToBeEncrypted)
    Returns the provided value once it has been encrypted.
  • Method Details

    • encrypt

      String encrypt(String valueToBeEncrypted) throws CryptoException
      Returns the provided value once it has been encrypted.
      Parameters:
      valueToBeEncrypted - String to be encrypted.
      Returns:
      the provided value once it has been encrypted.
      Throws:
      CryptoException - exception thrown in case of error occurred during the data encryption.
    • decrypt

      String decrypt(String valueToBeDecrypted) throws CryptoException
      Returns the provided value once it has been decrypted.
      Parameters:
      valueToBeDecrypted - String to be decrypted.
      Returns:
      the provided value once it has been decrypted.
      Throws:
      CryptoException - exception thrown in case of error occurred during the data decryption.