
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)
EncodeEncryptorencrypt in interface EncodeEncryptorplainText - plain text to encryptpublic String encrypt(String plainText, Integer maxAge)
EncodeEncryptorencrypt in interface EncodeEncryptorplainText - plainText plain text to encryptmaxAge - maxAge in secondsCopyright © 2017. All rights reserved.