Package org.pac4j.play.store
Class NoOpDataEncrypter
- java.lang.Object
-
- org.pac4j.play.store.NoOpDataEncrypter
-
- All Implemented Interfaces:
DataEncrypter
public class NoOpDataEncrypter extends Object implements DataEncrypter
A dummy DataEncrypter with no op functions. Used, for example, to generate unencrypted session cookie in `PlayCookieStore`.- Since:
- 6.1.0
- Author:
- Vidmantas Zemleris
-
-
Constructor Summary
Constructors Constructor Description NoOpDataEncrypter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decrypt(byte[] encryptedBytes)
Decrypt the data.byte[]
encrypt(byte[] rawBytes)
Encrypt the data.
-
-
-
Method Detail
-
decrypt
public byte[] decrypt(byte[] encryptedBytes)
Description copied from interface:DataEncrypter
Decrypt the data.- Specified by:
decrypt
in interfaceDataEncrypter
- Parameters:
encryptedBytes
- the encrypted bytes- Returns:
- decrypted bytes
-
encrypt
public byte[] encrypt(byte[] rawBytes)
Description copied from interface:DataEncrypter
Encrypt the data.- Specified by:
encrypt
in interfaceDataEncrypter
- Parameters:
rawBytes
- the raw bytes- Returns:
- encrypted bytes
-
-