|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jaulp.crypto.SimpleEncryptor
public class SimpleEncryptor
A simple Encryptor object.
Constructor Summary | |
---|---|
SimpleEncryptor()
Default constructor. |
|
SimpleEncryptor(java.lang.String privateKey)
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
encrypt(java.lang.String string)
Encrpyt 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 encryptCipher)
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 SimpleEncryptor()
public SimpleEncryptor(java.lang.String privateKey)
privateKey
- The private key.Method Detail |
---|
public java.lang.String encrypt(java.lang.String string)
encrypt
in interface Encryptor
string
- The String to encrypt.
Encryptor.encrypt(java.lang.String)
public javax.crypto.Cipher getCipher()
getCipher
in interface SecretCryptor
SecretCryptor.getCipher()
public java.lang.String getPrivateKey()
getPrivateKey
in interface SecretCryptor
SecretCryptor.getPrivateKey()
public void setCipher(javax.crypto.Cipher encryptCipher)
setCipher
in interface SecretCryptor
encryptCipher
- The cipher to set.SecretCryptor.setCipher(javax.crypto.Cipher)
public void setPrivateKey(java.lang.String privateKey)
setPrivateKey
in interface SecretCryptor
privateKey
- 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 |