org.apache.wicket.util.crypt
Class ClassCryptFactory

java.lang.Object
  extended by org.apache.wicket.util.crypt.ClassCryptFactory
All Implemented Interfaces:
ICryptFactory

public class ClassCryptFactory
extends Object
implements ICryptFactory

Crypt factory that creates the ICrypt object by instantiating a provided class. The class must implement ICrypt.

Author:
Igor Vaynberg (ivaynberg)

Constructor Summary
ClassCryptFactory(Class<?> cryptClass, String encryptionKey)
          Construct.
 
Method Summary
 ICrypt newCrypt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassCryptFactory

public ClassCryptFactory(Class<?> cryptClass,
                         String encryptionKey)
Construct.

Parameters:
cryptClass - class that will be instantiated to represent the ICrypt object
encryptionKey - encryption key
Method Detail

newCrypt

public ICrypt newCrypt()
Specified by:
newCrypt in interface ICryptFactory
Returns:
new crypt object
See Also:
ICryptFactory.newCrypt()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.