Class KeyInSessionSunJceCryptFactory
- java.lang.Object
-
- org.apache.wicket.core.util.crypt.KeyInSessionSunJceCryptFactory
-
- All Implemented Interfaces:
org.apache.wicket.util.crypt.ICryptFactory
public class KeyInSessionSunJceCryptFactory extends java.lang.Object implements org.apache.wicket.util.crypt.ICryptFactoryCrypt factory that producesSunJceCryptinstances based on session-specific encryption key. This allows each user to have his own encryption key, hardening against CSRF attacks.
Note that the use of this crypt factory will result in an immediate creation of a session.- Author:
- igor.vaynberg
-
-
Constructor Summary
Constructors Constructor Description KeyInSessionSunJceCryptFactory()Constructor usingCipher"PBEWithMD5AndDES"KeyInSessionSunJceCryptFactory(java.lang.String cryptMethod)Constructor that uses a customCipher
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.wicket.util.crypt.ICryptcreateCrypt()org.apache.wicket.util.crypt.ICryptnewCrypt()
-
-
-
Constructor Detail
-
KeyInSessionSunJceCryptFactory
public KeyInSessionSunJceCryptFactory()
Constructor usingCipher"PBEWithMD5AndDES"
-
KeyInSessionSunJceCryptFactory
public KeyInSessionSunJceCryptFactory(java.lang.String cryptMethod)
Constructor that uses a customCipher- Parameters:
cryptMethod- the name of the crypt method (cipher)
-
-