Constructor and Description |
---|
NullCryptor() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] ciphertext)
Decrypt the ciphertext in byte array format to yield the original
cleartext.
|
String |
decrypt(String ciphertext) |
byte[] |
encrypt(byte[] cleartext)
Encrypt the cleartext in byte array format.
|
String |
encrypt(String cleartext) |
Object |
sealObject(Object object) |
Object |
unsealObject(Object object) |
public byte[] encrypt(byte[] cleartext) throws CryptoException
Cryptor
encrypt
in interface Cryptor
cleartext
- The text to be encrypted, in byte formCryptoException
public String encrypt(String cleartext) throws CryptoException
CryptoException
public Object sealObject(Object object) throws CryptoException
sealObject
in interface Cryptor
CryptoException
public byte[] decrypt(byte[] ciphertext) throws CryptoException
Cryptor
decrypt
in interface Cryptor
ciphertext
- The text to be encrypted, in byte formCryptoException
public String decrypt(String ciphertext) throws CryptoException
CryptoException
public Object unsealObject(Object object) throws CryptoException
unsealObject
in interface Cryptor
CryptoException
Copyright © 2019. All rights reserved.