org.apache.wicket.util.crypt
Class SunJceCrypt
java.lang.Object
org.apache.wicket.util.crypt.AbstractCrypt
org.apache.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
Method Summary |
protected byte[] |
crypt(byte[] input,
int mode)
Crypts the given byte array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunJceCrypt
public SunJceCrypt()
- Constructor
crypt
protected final byte[] crypt(byte[] input,
int mode)
throws GeneralSecurityException
- Crypts the given byte array
- Specified by:
crypt
in class AbstractCrypt
- Parameters:
input
- byte array to be cryptedmode
- crypt mode
- Returns:
- the input crypted. Null in case of an error
- Throws:
GeneralSecurityException
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.