|
||||||||||
| 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 |
java.lang.String |
decryptUrlSafe(java.lang.String text)
Decrypts a string into a string. |
java.lang.String |
encryptUrlSafe(java.lang.String plainText)
Encrypt a string into a string using URL safe Base64 encoding. |
java.lang.String |
getKey()
Get encryption private key |
void |
setKey(java.lang.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 java.lang.String decryptUrlSafe(java.lang.String text)
decryptUrlSafe in interface ICrypttext - text to decrypt
public final java.lang.String encryptUrlSafe(java.lang.String plainText)
encryptUrlSafe in interface ICryptplainText - text to encrypt
public java.lang.String getKey()
public void setKey(java.lang.String key)
setKey in interface ICryptkey - private key to make de-/encryption unique
protected abstract byte[] crypt(byte[] input,
int mode)
throws java.security.GeneralSecurityException
input - byte array to be cryptedmode - crypt mode
java.security.GeneralSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||