public interface Encryptor
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String value)
Decrypt an encrypted String.
|
String |
decrypt(String value,
byte[] iv)
Decrypt an encrypted String.
|
String |
encrypt(String value)
Encrypt a clear text String.
|
String |
encrypt(String value,
byte[] iv)
Encrypt a clear text String.
|
void |
setKey(String key)
Set the encryption key.
|
String encrypt(String value)
value
- The clear text attributeString encrypt(String value, byte[] iv)
value
- The clear text attributeiv
- The IV to use, or null for the default IVString decrypt(String value)
value
- The encrypted attribute in Base64 encodingString decrypt(String value, byte[] iv)
value
- The encrypted attribute in Base64 encodingiv
- The IV to use, or null for the default IVvoid setKey(String key)
key
- The encryption keyCopyright © 2003–2019 Ignite Realtime. All rights reserved.