Class ValidateTokenHelper
- java.lang.Object
-
- io.mosip.kernel.auth.defaultadapter.helper.ValidateTokenHelper
-
@Component public class ValidateTokenHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidateTokenHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.mosip.kernel.core.authmanager.authadapter.model.MosipUserDtobuildMosipUser(com.auth0.jwt.interfaces.DecodedJWT decodedJWT, String jwtToken)io.mosip.kernel.core.authmanager.authadapter.model.MosipUserDtodoOfflineLocalTokenValidation(String jwtToken)org.apache.commons.lang3.tuple.ImmutablePair<org.springframework.http.HttpStatus,io.mosip.kernel.core.authmanager.authadapter.model.MosipUserDto>doOnlineTokenValidation(String jwtToken, org.springframework.web.client.RestTemplate restTemplate)org.apache.commons.lang3.tuple.ImmutablePair<org.springframework.http.HttpStatus,io.mosip.kernel.core.authmanager.authadapter.model.MosipUserDto>doOnlineTokenValidation(String jwtToken, org.springframework.web.reactive.function.client.WebClient webClient)PublicKeygetPublicKey(com.auth0.jwt.interfaces.DecodedJWT decodedJWT)org.apache.commons.lang3.tuple.ImmutablePair<Boolean,AuthAdapterErrorCode>isTokenValid(com.auth0.jwt.interfaces.DecodedJWT decodedJWT, PublicKey publicKey)
-
-
-
Method Detail
-
doOfflineLocalTokenValidation
public io.mosip.kernel.core.authmanager.authadapter.model.MosipUserDto doOfflineLocalTokenValidation(String jwtToken)
-
isTokenValid
public org.apache.commons.lang3.tuple.ImmutablePair<Boolean,AuthAdapterErrorCode> isTokenValid(com.auth0.jwt.interfaces.DecodedJWT decodedJWT, PublicKey publicKey)
-
getPublicKey
public PublicKey getPublicKey(com.auth0.jwt.interfaces.DecodedJWT decodedJWT)
-
buildMosipUser
public io.mosip.kernel.core.authmanager.authadapter.model.MosipUserDto buildMosipUser(com.auth0.jwt.interfaces.DecodedJWT decodedJWT, String jwtToken)
-
doOnlineTokenValidation
public org.apache.commons.lang3.tuple.ImmutablePair<org.springframework.http.HttpStatus,io.mosip.kernel.core.authmanager.authadapter.model.MosipUserDto> doOnlineTokenValidation(String jwtToken, org.springframework.web.client.RestTemplate restTemplate)
-
doOnlineTokenValidation
public org.apache.commons.lang3.tuple.ImmutablePair<org.springframework.http.HttpStatus,io.mosip.kernel.core.authmanager.authadapter.model.MosipUserDto> doOnlineTokenValidation(String jwtToken, org.springframework.web.reactive.function.client.WebClient webClient)
-
-