Class JwtValidator<C extends com.nimbusds.jose.proc.SecurityContext>

java.lang.Object
org.frankframework.jwt.JwtValidator<C>

public class JwtValidator<C extends com.nimbusds.jose.proc.SecurityContext> extends Object
  • Constructor Details

    • JwtValidator

      public JwtValidator()
  • Method Details

    • init

      public void init(String jwksUrl, String requiredIssuer) throws ParseException, IOException
      Throws:
      ParseException
      IOException
    • getKeySource

      protected com.nimbusds.jose.jwk.source.JWKSource<C> getKeySource(URL jwksURL) throws IOException, ParseException
      Throws:
      IOException
      ParseException
    • createSecurityContext

      protected C createSecurityContext(String idToken)
    • 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

      public com.nimbusds.jwt.proc.ConfigurableJWTProcessor<C> getJwtProcessor()