public class JWTTokenEncrypt extends Object
| Constructor and Description |
|---|
JWTTokenEncrypt(String secretKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String cipherText)
Decrypt a JWT token string
|
String |
encrypt(String plainText)
Encrypts a JWT token string with Base64
|
JWTTokenEncrypt(String secretKey)
public String encrypt(String plainText) throws ManagementServiceException
plainText - JWT token stringManagementServiceException - if token encryption failedpublic String decrypt(String cipherText) throws ManagementServiceException
cipherText - encrypted stringManagementServiceException - if token decryption failedCopyright © 2016–2019 AdroitLogic. All rights reserved.