Class EncryptorUtil
Object
com.liferay.portal.kernel.encryptor.EncryptorUtil
- Author:
- Julius Lee
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static byte[]
decryptUnencodedAsBytes
(Key key, byte[] encryptedBytes) static Key
deserializeKey
(String base64String) static String
static byte[]
encryptUnencoded
(Key key, byte[] plainBytes) static byte[]
encryptUnencoded
(Key key, String plainText) static Key
static String
serializeKey
(Key key)
-
Constructor Details
-
EncryptorUtil
public EncryptorUtil()
-
-
Method Details
-
decrypt
- Throws:
EncryptorException
-
decryptUnencodedAsBytes
public static byte[] decryptUnencodedAsBytes(Key key, byte[] encryptedBytes) throws EncryptorException - Throws:
EncryptorException
-
deserializeKey
-
encrypt
- Throws:
EncryptorException
-
encryptUnencoded
- Throws:
EncryptorException
-
encryptUnencoded
- Throws:
EncryptorException
-
generateKey
- Throws:
EncryptorException
-
serializeKey
-