Package org.pac4j.play.store
Class ShiroAesDataEncrypter
java.lang.Object
org.pac4j.play.store.ShiroAesDataEncrypter
- All Implemented Interfaces:
DataEncrypter
A DataEncrypter based on the Shiro library and AES encryption.
- Since:
- 6.1.0
- Author:
- Jerome Leleu
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ShiroAesDataEncrypter
public ShiroAesDataEncrypter(byte[] key) -
ShiroAesDataEncrypter
public ShiroAesDataEncrypter()
-
-
Method Details
-
decrypt
public byte[] decrypt(byte[] encryptedBytes) Description copied from interface:DataEncrypterDecrypt the data.- Specified by:
decryptin interfaceDataEncrypter- Parameters:
encryptedBytes- the encrypted bytes- Returns:
- decrypted bytes
-
encrypt
public byte[] encrypt(byte[] rawBytes) Description copied from interface:DataEncrypterEncrypt the data.- Specified by:
encryptin interfaceDataEncrypter- Parameters:
rawBytes- the raw bytes- Returns:
- encrypted bytes
-