Class OttChainCustomizer.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<OttChainCustomizer.SessionStrategyConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
com.irurueta.authserver.authorization.api.web.ott.OttChainCustomizer.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:
OttChainCustomizer

static final class OttChainCustomizer.SessionStrategyConfigurer extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<OttChainCustomizer.SessionStrategyConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
Hands the session authentication strategy of the chain to the second-factor 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

    Fields
    Modifier and Type
    Field
    Description
    private final OttSecondFactorFilter
    The filter that gets the strategy.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(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, withObjectPostProcessor

    Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter

    addObjectPostProcessor, getBuilder, init, postProcess, setBuilder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      configure in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
      Overrides:
      configure in class org.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.