Class TokenUtils
java.lang.Object
org.wso2.am.integration.test.utils.token.TokenUtils
A class for token utility operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBase64EncodedAppCredentials(String clientId, String clientSecret) Returns the base64 encoded client Id:client secretstatic StringgetJtiOfJwtToken(String jwtToken) Parse a given JWT token and return 'jti' of the token.
-
Constructor Details
-
TokenUtils
public TokenUtils()
-
-
Method Details
-
getJtiOfJwtToken
Parse a given JWT token and return 'jti' of the token.- Parameters:
jwtToken- JWT token- Returns:
- 'jti' of the token
- Throws:
ParseException- if an error occurred when parsing the token
-
getBase64EncodedAppCredentials
Returns the base64 encoded client Id:client secret- Parameters:
clientId- Client Id of the applicationclientSecret- Client secret of the application- Returns:
- base64 encoded client Id:client secret
-