|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.util.crypt.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 |
decrypt(java.lang.String text)
Decrypts a string into a string. |
java.lang.String |
encrypt(java.lang.String plainText)
Encrypt a string into a string |
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 decrypt(java.lang.String text)
decrypt in interface ICrypttext - text to decript
public final java.lang.String encrypt(java.lang.String plainText)
encrypt 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 | ||||||||||