public class Jwt extends Object implements EncodeCipher
Constructor and Description |
---|
Jwt(JwtEncryptor encryptor,
JwtDecryptor decryptor) |
Jwt(KeyExpression keyExpression) |
public Jwt(JwtEncryptor encryptor, JwtDecryptor decryptor)
public Jwt(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.