Class ASecurityConfig.AWebSecurityConfigurer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.springframework.context.ApplicationContext context  
      protected String cookieName
      The name of the cookie to clear
      protected org.springframework.core.env.Environment env  
      protected boolean logout
      true to enable the logout URL
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)  
      protected abstract void doConfigure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)  
      • Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

        authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
    • Field Detail

      • logout

        protected final boolean logout
        true to enable the logout URL
      • cookieName

        protected final String cookieName
        The name of the cookie to clear
      • env

        @Autowired
        protected org.springframework.core.env.Environment env
      • context

        @Autowired
        protected org.springframework.context.ApplicationContext context
    • Constructor Detail

      • AWebSecurityConfigurer

        public AWebSecurityConfigurer()
        This constructor does not enable the logout URL
      • AWebSecurityConfigurer

        public AWebSecurityConfigurer​(String cookieName)
        This constructor enables the logout URL
        Parameters:
        cookieName - the name of the cookie to clear
    • Method Detail

      • configure

        protected final void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
                                throws Exception
        Overrides:
        configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        Throws:
        Exception
      • doConfigure

        protected abstract void doConfigure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
                                     throws Exception
        Parameters:
        http - HttpSecurity
        Throws:
        Exception - exception
        See Also:
        configure(HttpSecurity)