Class JWTClaimsSetAuthenticationManager
java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.synchronised.resourceserver.JWTClaimsSetAuthenticationManager
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationManager
public class JWTClaimsSetAuthenticationManager
extends Object
implements org.springframework.security.authentication.AuthenticationManager
An AuthenticationManager relying on JWTClaimsSetAuthenticationManager.JWTClaimsSetAuthenticationManagerResolver, itself using SpringAddonsJwtDecoderFactory and a
Converter<Jwt, AbstractAuthenticationToken>.
DefaultSpringAddonsJwtDecoderFactory, the default SpringAddonsJwtDecoderFactory throws an exception if the OpenID Provider configuration
properties could not be resolved from the JWT claims.
- Author:
- Jérôme Wacongne <ch4mp@c4-soft.com>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnAuthenticationManagerResolverfor resource servers using JWT decoder(s). -
Constructor Summary
ConstructorsConstructorDescriptionJWTClaimsSetAuthenticationManager(OpenidProviderPropertiesResolver opPropertiesResolver, SpringAddonsJwtDecoderFactory jwtDecoderFactory, org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt, org.springframework.security.authentication.AbstractAuthenticationToken> jwtAuthenticationConverter) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)
-
Constructor Details
-
JWTClaimsSetAuthenticationManager
public JWTClaimsSetAuthenticationManager(OpenidProviderPropertiesResolver opPropertiesResolver, SpringAddonsJwtDecoderFactory jwtDecoderFactory, org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt, org.springframework.security.authentication.AbstractAuthenticationToken> jwtAuthenticationConverter)
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationManager- Throws:
org.springframework.security.core.AuthenticationException
-