Class X509ChainCustomizer.SessionStrategyConfigurer
java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<X509ChainCustomizer.SessionStrategyConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
com.irurueta.authserver.authorization.api.web.x509.X509ChainCustomizer.SessionStrategyConfigurer
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
- Enclosing class:
X509ChainCustomizer
static final class X509ChainCustomizer.SessionStrategyConfigurer
extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<X509ChainCustomizer.SessionStrategyConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
Hands the session authentication strategy of the chain to the success handler. The strategy is a shared object
of the chain that only exists once every configurer has been initialised (the CSRF configurer adds its
CsrfAuthenticationStrategy to the session management one), so it is read in configure, as the
form login does for its own filter. Package-private so its test can drive it.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final X509AuthenticationSuccessHandlerThe handler that gets the strategy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Sets the shared strategy, when the chain has one, on the handler.Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer
disable, getRequestMatcherBuilder, getSecurityContextHolderStrategy, withObjectPostProcessorMethods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, getBuilder, init, postProcess, setBuilder
-
Field Details
-
handler
The handler that gets the strategy.
-
-
Constructor Details
-
SessionStrategyConfigurer
SessionStrategyConfigurer()
-
-
Method Details
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Sets the shared strategy, when the chain has one, on the handler.- Specified by:
configurein interfaceorg.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity> - Overrides:
configurein classorg.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity> - Parameters:
http- security builder of the chain.
-