Class TokenValidator
java.lang.Object
io.mosip.kernel.auth.defaultimpl.util.TokenValidator
Token validator
- Author:
- Raj Kumar Jha, Ramadurai Pandian, Urvil Joshi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbasicValidate(String token) io.mosip.kernel.core.authmanager.model.MosipUserDtogetAdminClaims(String token) getKeycloakRealm(String token) booleanReturns true if token if expired else falsebooleanvalidateExpiry(String token) validateForOtpVerification(String token) io.mosip.kernel.core.authmanager.model.MosipUserTokenDtovalidateOTP(String otp) io.mosip.kernel.core.authmanager.model.MosipUserTokenDtovalidateToken(String token)
-
Constructor Details
-
TokenValidator
public TokenValidator()
-
-
Method Details
-
getAdminClaims
-
isExpired
Returns true if token if expired else false- Parameters:
token- the token- Returns:
- true if token if expired else false
-
getKeycloakRealm
-
getissuer
-
validateForOtpVerification
- Throws:
Exception
-
basicValidate
- Throws:
Exception
-
validateToken
public io.mosip.kernel.core.authmanager.model.MosipUserTokenDto validateToken(String token) throws Exception - Throws:
Exception
-
validateOTP
public io.mosip.kernel.core.authmanager.model.MosipUserTokenDto validateOTP(String otp) throws Exception - Throws:
Exception
-
validateExpiry
- Throws:
Exception
-