public class TokenUtils extends Object
| Constructor and Description |
|---|
TokenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getBase64EncodedAppCredentials(String clientId,
String clientSecret)
Returns the base64 encoded client Id:client secret
|
static String |
getJtiOfJwtToken(String jwtToken)
Parse a given JWT token and return 'jti' of the token.
|
public static String getJtiOfJwtToken(String jwtToken) throws ParseException
jwtToken - JWT tokenParseException - if an error occurred when parsing the tokenpublic static String getBase64EncodedAppCredentials(String clientId, String clientSecret)
clientId - Client Id of the applicationclientSecret - Client secret of the applicationCopyright © 2022 WSO2 Inc. All rights reserved.