public class AesEncryptor extends Object implements EncodeEncryptor
Constructor and Description |
---|
AesEncryptor(Provider provider,
KeyExpression keyExpression) |
Modifier and Type | Method and Description |
---|---|
String |
encrypt(String plainText)
encrypt and encode.
|
String |
encrypt(String plainText,
Integer maxAge)
encrypt and encode.
|
String |
encryptBytes(String random,
byte[] plainBytes) |
public AesEncryptor(Provider provider, KeyExpression keyExpression)
public String encrypt(String plainText)
EncodeEncryptor
encrypt
in interface EncodeEncryptor
plainText
- plain text to encryptpublic String encrypt(String plainText, Integer maxAge)
EncodeEncryptor
encrypt
in interface EncodeEncryptor
plainText
- plainText plain text to encryptmaxAge
- maxAge in secondsCopyright © 2017. All rights reserved.