Class KeyCloakJwtValidator
java.lang.Object
com.mapr.baseutils.sso.providers.keycloak.KeyCloakJwtValidator
- All Implemented Interfaces:
JwtValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetCertificateUrl(com.auth0.jwt.interfaces.DecodedJWT token) getClaimAsList(String token, String key) getIntrospectionURL(com.auth0.jwt.interfaces.DecodedJWT token) getTokenUrl(com.auth0.jwt.interfaces.DecodedJWT token) getUserName(String token) getUserName(String token, boolean check) 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
-
Constructor Details
-
KeyCloakJwtValidator
public KeyCloakJwtValidator() -
KeyCloakJwtValidator
-
-
Method Details
-
getTokenUrl
-
setIssuers
- Specified by:
setIssuersin interfaceJwtValidator
-
getCertificateUrl
- Specified by:
getCertificateUrlin interfaceJwtValidator
-
getIntrospectionURL
- Specified by:
getIntrospectionURLin interfaceJwtValidator
-
loadPublicKey
public RSAPublicKey loadPublicKey(com.auth0.jwt.interfaces.DecodedJWT token) throws com.auth0.jwk.JwkException, MalformedURLException - Specified by:
loadPublicKeyin interfaceJwtValidator- Throws:
com.auth0.jwk.JwkExceptionMalformedURLException
-
validate
- Specified by:
validatein interfaceJwtValidator- Throws:
InvalidParameterException
-
expiresIn
- Specified by:
expiresInin interfaceJwtValidator- Throws:
InvalidParameterException
-
getUserName
- Specified by:
getUserNamein interfaceJwtValidator- Throws:
InvalidParameterException
-
getUserName
- Throws:
InvalidParameterException
-
getClaim
- Specified by:
getClaimin interfaceJwtValidator- Throws:
InvalidParameterException
-
getClaim
- Throws:
InvalidParameterException
-
getClaimAsList
- Specified by:
getClaimAsListin interfaceJwtValidator- Throws:
InvalidParameterException
-
introspect
- Specified by:
introspectin interfaceJwtValidator
-
refreshToken
- Specified by:
refreshTokenin interfaceJwtValidator
-