public class JWTCodec extends Object
| Constructor and Description |
|---|
JWTCodec() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
decode(String jwtToken,
JWTKeyMaster keyMaster,
Class<T> claimsClass) |
static <T> T |
decode(String jwtToken,
JWTKeyMaster keyMaster,
Class<T> claimsClass,
boolean urlSafe) |
static String |
encode(Object claims,
JWTKeyMaster keyMaster) |
static String |
encode(Object claims,
JWTKeyMaster keyMaster,
boolean urlSafe) |
public static String encode(Object claims, JWTKeyMaster keyMaster) throws Exception
Exceptionpublic static String encode(Object claims, JWTKeyMaster keyMaster, boolean urlSafe) throws Exception
Exceptionpublic static <T> T decode(String jwtToken, JWTKeyMaster keyMaster, Class<T> claimsClass) throws Exception
Exceptionpublic static <T> T decode(String jwtToken, JWTKeyMaster keyMaster, Class<T> claimsClass, boolean urlSafe) throws Exception
ExceptionCopyright © 2018. All rights reserved.