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)
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 secondspublic String decrypt(String encryptedAndEncoded)
EncodeDecryptor
decrypt
in interface EncodeDecryptor
encryptedAndEncoded
- encrypted and encodedCopyright © 2017. All rights reserved.