public class EncryptorUtil
extends Object
| Constructor and Description |
|---|
EncryptorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decrypt(Key key,
String encryptedString) |
static byte[] |
decryptUnencodedAsBytes(Key key,
byte[] encryptedBytes) |
static Key |
deserializeKey(String base64String) |
static String |
encrypt(Key key,
String plainText) |
static byte[] |
encryptUnencoded(Key key,
byte[] plainBytes) |
static byte[] |
encryptUnencoded(Key key,
String plainText) |
static Key |
generateKey() |
static String |
serializeKey(Key key) |
public static String decrypt(Key key,
String encryptedString)
throws EncryptorException
EncryptorExceptionpublic static byte[] decryptUnencodedAsBytes(Key key,
byte[] encryptedBytes)
throws EncryptorException
EncryptorExceptionpublic static Key deserializeKey(String base64String)
public static String encrypt(Key key,
String plainText)
throws EncryptorException
EncryptorExceptionpublic static byte[] encryptUnencoded(Key key,
byte[] plainBytes)
throws EncryptorException
EncryptorExceptionpublic static byte[] encryptUnencoded(Key key,
String plainText)
throws EncryptorException
EncryptorExceptionpublic static Key generateKey()
throws EncryptorException
EncryptorExceptionpublic static String serializeKey(Key key)