public interface Cryptor
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] ciphertext)
Decrypt the ciphertext in byte array format to yield the original
cleartext.
|
byte[] |
encrypt(byte[] cleartext)
Encrypt the cleartext in byte array format.
|
Object |
sealObject(Object object) |
Object |
unsealObject(Object object) |
byte[] encrypt(byte[] cleartext)
throws CryptoException
cleartext - The text to be encrypted, in byte formThe - encrypted ciphertext, in byte formCryptoExceptionObject sealObject(Object object) throws CryptoException
CryptoExceptionbyte[] decrypt(byte[] ciphertext)
throws CryptoException
ciphertext - The text to be encrypted, in byte formThe - decrypted cleartext, in byte formCryptoExceptionObject unsealObject(Object object) throws CryptoException
CryptoExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.