Package io.mosip.kernel.core.util
Class TokenHandlerUtil
- java.lang.Object
-
- io.mosip.kernel.core.util.TokenHandlerUtil
-
public class TokenHandlerUtil extends Object
- Author:
- Srinivasan
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisValidBearerToken(String accessToken, String issuerUrl, String clientId)Validates the token offline based on the Oauth2 standards.
-
-
-
Method Detail
-
isValidBearerToken
public static boolean isValidBearerToken(String accessToken, String issuerUrl, String clientId)
Validates the token offline based on the Oauth2 standards.- Parameters:
accessToken- - Bearer tokenissuerUrl- - issuer URL to be read from the properties,clientId- - client Id to be read from the properties- Returns:
- Boolean
-
-