|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.crypt.AbstractCrypt
public abstract class AbstractCrypt
Abstract base class for JCE based ICrypt implementations.
| Constructor Summary | |
|---|---|
AbstractCrypt()
Constructor |
|
| Method Summary | |
|---|---|
protected abstract byte[] |
crypt(byte[] input,
int mode)
Crypts the given byte array |
String |
decryptUrlSafe(String text)
Decrypts a string into a string. |
String |
encryptUrlSafe(String plainText)
Encrypt a string into a string using URL safe Base64 encoding. |
String |
getKey()
Get encryption private key |
void |
setKey(String key)
Set encryption private key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCrypt()
| Method Detail |
|---|
public final String decryptUrlSafe(String text)
decryptUrlSafe in interface ICrypttext - text to decrypt
public final String encryptUrlSafe(String plainText)
encryptUrlSafe in interface ICryptplainText - text to encrypt
public String getKey()
public void setKey(String key)
setKey in interface ICryptkey - private key to make de-/encryption unique
protected abstract byte[] crypt(byte[] input,
int mode)
throws GeneralSecurityException
input - byte array to be cryptedmode - crypt mode
GeneralSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||