public interface Encryptor
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(Key key,
String encryptedString) |
byte[] |
decryptUnencodedAsBytes(Key key,
byte[] encryptedBytes) |
Key |
deserializeKey(String base64String) |
String |
encrypt(Key key,
String plainText) |
byte[] |
encryptUnencoded(Key key,
byte[] plainBytes) |
byte[] |
encryptUnencoded(Key key,
String plainText) |
Key |
generateKey() |
String |
serializeKey(Key key) |
String decrypt(Key key,
String encryptedString)
throws EncryptorException
EncryptorExceptionbyte[] decryptUnencodedAsBytes(Key key,
byte[] encryptedBytes)
throws EncryptorException
EncryptorExceptionKey deserializeKey(String base64String)
String encrypt(Key key,
String plainText)
throws EncryptorException
EncryptorExceptionbyte[] encryptUnencoded(Key key,
byte[] plainBytes)
throws EncryptorException
EncryptorExceptionbyte[] encryptUnencoded(Key key,
String plainText)
throws EncryptorException
EncryptorExceptionKey generateKey()
throws EncryptorException
EncryptorExceptionString serializeKey(Key key)