Package com.mapr.baseutils.sso
Interface JwtValidator
- All Known Implementing Classes:
KeyCloakJwtValidator,OktaJwtValidator
public interface JwtValidator
-
Method Summary
Modifier and TypeMethodDescriptionlonggetCertificateUrl(com.auth0.jwt.interfaces.DecodedJWT token) getClaimAsList(String token, String key) getIntrospectionURL(com.auth0.jwt.interfaces.DecodedJWT token) getUserName(String token) booleanintrospect(String token, String clientId, String clientSecret) loadPublicKey(com.auth0.jwt.interfaces.DecodedJWT token) refreshToken(String token, String refreshToken, String clientId, String clientSecret) voidsetIssuers(String issuers) com.auth0.jwt.interfaces.DecodedJWT
-
Method Details
-
getCertificateUrl
-
getIntrospectionURL
-
loadPublicKey
RSAPublicKey loadPublicKey(com.auth0.jwt.interfaces.DecodedJWT token) throws com.auth0.jwk.JwkException, MalformedURLException - Throws:
com.auth0.jwk.JwkExceptionMalformedURLException
-
setIssuers
-
validate
- Throws:
InvalidParameterException
-
expiresIn
- Throws:
InvalidParameterException
-
getUserName
- Throws:
InvalidParameterException
-
introspect
-
getClaim
- Throws:
InvalidParameterException
-
getClaimAsList
- Throws:
InvalidParameterException
-
refreshToken
-