Package org.apache.wicket.util.crypt
Class TrivialCrypt
- java.lang.Object
-
- org.apache.wicket.util.crypt.AbstractCrypt
-
- org.apache.wicket.util.crypt.TrivialCrypt
-
- All Implemented Interfaces:
ICrypt
public class TrivialCrypt extends AbstractCrypt
THIS CLASS IS FOR TESTING PURPOSES ONLY. DO NOT USE IT IN PRODUCTION CODE!- Author:
- Jonathan Locke
-
-
Constructor Summary
Constructors Constructor Description TrivialCrypt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
crypt(byte[] input, int mode)
Crypts the given byte array-
Methods inherited from class org.apache.wicket.util.crypt.AbstractCrypt
decryptUrlSafe, encryptUrlSafe, getKey, setKey
-
-
-
-
Constructor Detail
-
TrivialCrypt
public TrivialCrypt()
-
-
Method Detail
-
crypt
protected byte[] crypt(byte[] input, int mode) throws GeneralSecurityException
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
-
-