public class JwtEncryptor extends Object implements EncodeEncryptor
Constructor and Description |
---|
JwtEncryptor(KeyExpression keyExpression) |
Modifier and Type | Method and Description |
---|---|
String |
buildCompactJws(String token,
org.joda.time.DateTime now,
Integer maxAge) |
String |
encrypt(String plainText)
encrypt and encode.
|
String |
encrypt(String plainText,
Integer maxAge)
encrypt and encode.
|
public JwtEncryptor(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.