org.apache.wicket.core.util.crypt
Class KeyInSessionSunJceCryptFactory
java.lang.Object
org.apache.wicket.core.util.crypt.KeyInSessionSunJceCryptFactory
- All Implemented Interfaces:
- ICryptFactory
public class KeyInSessionSunJceCryptFactory
- extends Object
- implements ICryptFactory
Crypt factory that produces SunJceCrypt instances 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyInSessionSunJceCryptFactory
public KeyInSessionSunJceCryptFactory()
- Constructor using
Cipher "PBEWithMD5AndDES"
KeyInSessionSunJceCryptFactory
public KeyInSessionSunJceCryptFactory(String cryptMethod)
- Constructor that uses a custom
Cipher
- Parameters:
cryptMethod - the name of the crypt method (cipher)
newCrypt
public ICrypt newCrypt()
- Specified by:
newCrypt in interface ICryptFactory
createCrypt
protected ICrypt createCrypt()
- Returns:
- the
ICrypt to use
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.