wicket.util.crypt
Class SunJceCrypt

java.lang.Object
  extended by wicket.util.crypt.AbstractCrypt
      extended by wicket.util.crypt.SunJceCrypt
All Implemented Interfaces:
ICrypt

public class SunJceCrypt
extends AbstractCrypt

Provide some simple means to encrypt and decrypt strings such as passwords. The whole implementation is based around Sun's security providers and uses the PBEWithMD5AndDES method to encrypt and decrypt the data.

Author:
Juergen Donnerstag

Constructor Summary
SunJceCrypt()
          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

SunJceCrypt

public SunJceCrypt()
Constructor

Method Detail

crypt

protected final byte[] crypt(byte[] input,
                             int mode)
                      throws java.security.GeneralSecurityException
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


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