
public class Aes extends Object implements EncodeCipher
| Constructor and Description |
|---|
Aes(AesEncryptor encryptor,
AesDecryptor decryptor) |
Aes(Provider provider,
KeyExpression keyExpression) |
public Aes(AesEncryptor encryptor, AesDecryptor decryptor)
public Aes(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 secondspublic String decrypt(String encryptedAndEncoded)
EncodeDecryptordecrypt in interface EncodeDecryptorencryptedAndEncoded - encrypted and encodedCopyright © 2017. All rights reserved.