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

    Fields
    Modifier and Type
    Field
    Description
    The handler 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 handler.

    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 handler.
      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.