Package org.frankframework.jwt
Class JwtValidator<C extends com.nimbusds.jose.proc.SecurityContext>
java.lang.Object
org.frankframework.jwt.JwtValidator<C>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected C
createSecurityContext
(String idToken) int
com.nimbusds.jwt.proc.ConfigurableJWTProcessor<C>
protected com.nimbusds.jose.jwk.source.JWKSource<C>
getKeySource
(URL jwksURL) int
void
void
setConnectTimeout
(int connectTimeout) void
setReadTimeout
(int readTimeout) validateJWT
(String idToken)
-
Constructor Details
-
JwtValidator
public JwtValidator()
-
-
Method Details
-
init
- Throws:
ParseException
IOException
-
getKeySource
protected com.nimbusds.jose.jwk.source.JWKSource<C> getKeySource(URL jwksURL) throws IOException, ParseException - Throws:
IOException
ParseException
-
createSecurityContext
-
validateJWT
public Map<String,Object> validateJWT(String idToken) throws ParseException, com.nimbusds.jose.proc.BadJOSEException, com.nimbusds.jose.JOSEException - Throws:
ParseException
com.nimbusds.jose.proc.BadJOSEException
com.nimbusds.jose.JOSEException
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout) -
setReadTimeout
public void setReadTimeout(int readTimeout) -
getConnectTimeout
public int getConnectTimeout() -
getReadTimeout
public int getReadTimeout() -
getJwtProcessor
-