Interface DataEncrypter

  • All Known Implementing Classes:
    NoOpDataEncrypter, ShiroAesDataEncrypter

    public interface DataEncrypter
    A wrapper with encryption/decryption functions, used in session cookie generation in `PlayCookieSessionStore`.
    Since:
    6.1.0
    Author:
    Vidmantas Zemleris
    • Method Detail

      • decrypt

        byte[] decrypt​(byte[] encryptedBytes)
        Decrypt the data.
        Parameters:
        encryptedBytes - the encrypted bytes
        Returns:
        decrypted bytes
      • encrypt

        byte[] encrypt​(byte[] rawBytes)
        Encrypt the data.
        Parameters:
        rawBytes - the raw bytes
        Returns:
        encrypted bytes