Class DefaultCrypter
java.lang.Object
org.apache.wicket.pageStore.crypt.DefaultCrypter
- All Implemented Interfaces:
ICrypter
Default encryption and decryption implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
encrypt
(byte[] decrypted, SecretKey key, SecureRandom random) generateKey
(SecureRandom random) protected Cipher
-
Constructor Details
-
DefaultCrypter
public DefaultCrypter()
-
-
Method Details
-
getCipher
- Throws:
GeneralSecurityException
-
generateKey
- Specified by:
generateKey
in interfaceICrypter
-
encrypt
-
decrypt
-