Class TotpChainCustomizer.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<TotpChainCustomizer.SessionStrategyConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
com.irurueta.authserver.authorization.api.web.totp.TotpChainCustomizer.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:
TotpChainCustomizer
static final class TotpChainCustomizer.SessionStrategyConfigurer
extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<TotpChainCustomizer.SessionStrategyConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
Hands the session authentication strategy of the chain to the TOTP filter. 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(org.springframework.security.config.annotation.web.builders.HttpSecurity), as the
form login does for its own filter. Package-private so its test can drive it.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TotpAuthenticationFilterThe filter 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 filter.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
-
filter
The filter 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 filter.- 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.
-