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
EncryptorException
byte[] decryptUnencodedAsBytes(Key key, byte[] encryptedBytes) throws EncryptorException
EncryptorException
Key deserializeKey(String base64String)
String encrypt(Key key, String plainText) throws EncryptorException
EncryptorException
byte[] encryptUnencoded(Key key, byte[] plainBytes) throws EncryptorException
EncryptorException
byte[] encryptUnencoded(Key key, String plainText) throws EncryptorException
EncryptorException
Key generateKey() throws EncryptorException
EncryptorException
String serializeKey(Key key)