java.lang.Object
org.apache.wicket.util.crypt.AbstractCrypt
org.apache.wicket.util.crypt.TrivialCrypt
- All Implemented Interfaces:
ICrypt
THIS CLASS IS FOR TESTING PURPOSES ONLY. DO NOT USE IT IN PRODUCTION CODE!
- Author:
- Jonathan Locke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
crypt
(byte[] input, int mode) Crypts the given byte arrayMethods inherited from class org.apache.wicket.util.crypt.AbstractCrypt
decryptUrlSafe, encryptUrlSafe, getKey, setKey
-
Constructor Details
-
TrivialCrypt
public TrivialCrypt()
-
-
Method Details
-
crypt
Description copied from class:AbstractCrypt
Crypts the given byte array- Specified by:
crypt
in classAbstractCrypt
- Parameters:
input
- byte array to be cryptedmode
- crypt mode- Returns:
- the input crypted. Null in case of an error
- Throws:
GeneralSecurityException
-