wicket.util.crypt
Class TrivialCrypt

java.lang.Object
  extended by wicket.util.crypt.AbstractCrypt
      extended by 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
TrivialCrypt()
          Constructor
 
Method Summary
protected  byte[] crypt(byte[] input, int mode)
          Crypts the given byte array
 
Methods inherited from class wicket.util.crypt.AbstractCrypt
decrypt, decryptUrlSafe, encrypt, encryptUrlSafe, getKey, setKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrivialCrypt

public TrivialCrypt()
Constructor

Method Detail

crypt

protected byte[] crypt(byte[] input,
                       int mode)
                throws java.security.GeneralSecurityException
Description copied from class: AbstractCrypt
Crypts the given byte array

Specified by:
crypt in class AbstractCrypt
Parameters:
input - byte array to be crypted
mode - crypt mode
Returns:
the input crypted. Null in case of an error
Throws:
java.security.GeneralSecurityException
See Also:
AbstractCrypt.crypt(byte[], int)


Copyright © 2004-2007 Wicket developers. All Rights Reserved.