wicket.util.crypt
Class ClassCryptFactory

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

public class ClassCryptFactory
extends java.lang.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(java.lang.Class cryptClass, java.lang.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(java.lang.Class cryptClass,
                         java.lang.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-2007 Wicket developers. All Rights Reserved.