|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cryptor
Interface defining a utility that can perform both encryption and decryption.
Method Summary | |
---|---|
byte[] |
decrypt(byte[] ciphertext)
Decrypt the ciphertext in byte array format to yield the original cleartext. |
String |
decrypt(String ciphertext)
Decrypt the ciphertext to yield the original cleartext. |
byte[] |
encrypt(byte[] cleartext)
Encrypt the cleartext in byte array format. |
String |
encrypt(String cleartext)
Encrypt the cleartext |
Object |
sealObject(Object object)
|
Object |
unsealObject(Object object)
|
Method Detail |
---|
byte[] encrypt(byte[] cleartext) throws CryptoException
cleartext
- The text to be encrypted, in byte formThe
- encrypted ciphertext, in byte form
CryptoException
String encrypt(String cleartext) throws CryptoException
cleartext
- The text to be encryptedThe
- encrypted ciphertext
CryptoException
Object sealObject(Object object) throws CryptoException
CryptoException
byte[] decrypt(byte[] ciphertext) throws CryptoException
ciphertext
- The text to be encrypted, in byte formThe
- decrypted cleartext, in byte form
CryptoException
String decrypt(String ciphertext) throws CryptoException
ciphertext
- The text to be encryptedThe
- decrypted cleartext
CryptoException
Object unsealObject(Object object) throws CryptoException
CryptoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |