Class OpenIdTokenDecoderFactory

java.lang.Object
com.wavemaker.runtime.security.provider.openid.OpenIdTokenDecoderFactory
All Implemented Interfaces:
org.springframework.security.oauth2.jwt.JwtDecoderFactory<org.springframework.security.oauth2.client.registration.ClientRegistration>

public class OpenIdTokenDecoderFactory extends Object implements org.springframework.security.oauth2.jwt.JwtDecoderFactory<org.springframework.security.oauth2.client.registration.ClientRegistration>
OpenIdTokenDecoderFactory creates a NimbusJwtDecoder using either JwkSetUrl or public key from jwkSetUri property. If the property has only JwkSetUrl it uses the default OidcIdTokenDecoderFactory. If the property has both JwkSetUrl and file path then file path is used and falls back to url in case of any exceptions.
  • Constructor Details

    • OpenIdTokenDecoderFactory

      public OpenIdTokenDecoderFactory()
  • Method Details

    • createDecoder

      public org.springframework.security.oauth2.jwt.JwtDecoder createDecoder(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)
      Specified by:
      createDecoder in interface org.springframework.security.oauth2.jwt.JwtDecoderFactory<org.springframework.security.oauth2.client.registration.ClientRegistration>