|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jaulp.crypto.SimpleDecryptor
public class SimpleDecryptor
A simple Decryptor object.
| Constructor Summary | |
|---|---|
SimpleDecryptor()
Default constructor. |
|
SimpleDecryptor(java.lang.String privateKey)
Constructor with a private key. |
|
| Method Summary | |
|---|---|
java.lang.String |
decrypt(java.lang.String str)
Decrpyt the donated String. |
javax.crypto.Cipher |
getCipher()
Returns the cipher from the SecretCryptor object. |
java.lang.String |
getPrivateKey()
Returns the private key from the SecretCryptor object. |
void |
setCipher(javax.crypto.Cipher decryptCipher)
Sets the cipher from the SecretCryptor object. |
void |
setPrivateKey(java.lang.String privateKey)
Sets the private key from the SecretCryptor object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleDecryptor()
public SimpleDecryptor(java.lang.String privateKey)
privateKey - The private key.| Method Detail |
|---|
public java.lang.String decrypt(java.lang.String str)
decrypt in interface Decryptorstr - The String to decrypt.
Decryptor.decrypt(java.lang.String)public javax.crypto.Cipher getCipher()
getCipher in interface SecretCryptorSecretCryptor.getCipher()public java.lang.String getPrivateKey()
getPrivateKey in interface SecretCryptorSecretCryptor.getPrivateKey()public void setCipher(javax.crypto.Cipher decryptCipher)
setCipher in interface SecretCryptordecryptCipher - The cipher to set.SecretCryptor.setCipher(javax.crypto.Cipher)public void setPrivateKey(java.lang.String privateKey)
setPrivateKey in interface SecretCryptorprivateKey - The private key to set.SecretCryptor.setPrivateKey(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||