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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.jwt.JwtDecodercreateDecoder(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)
-
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:
createDecoderin interfaceorg.springframework.security.oauth2.jwt.JwtDecoderFactory<org.springframework.security.oauth2.client.registration.ClientRegistration>
-