Class SalespointSecurityConfiguration

  • All Implemented Interfaces:
    org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,​org.springframework.security.config.annotation.web.builders.WebSecurity>, org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>

    @Configuration
    @EnableWebSecurity
    public class SalespointSecurityConfiguration
    extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
    Basic Salespoint security configuration setting up the AuthenticationManagerBuilder to work with the UserDetailsService implementation as well as the PasswordEncoder we provide.
    Author:
    Oliver Gierke
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()
      Overridden to expose the AuthenticationManager as a Spring bean.
      protected void configure​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder amBuilder)  
      void configure​(org.springframework.security.config.annotation.web.builders.WebSecurity web)
      Allow anonymous access to resources by default.
      • Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

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

      • SalespointSecurityConfiguration

        public SalespointSecurityConfiguration()
    • Method Detail

      • configure

        protected void configure​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder amBuilder)
                          throws Exception
        Overrides:
        configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        Throws:
        Exception
      • authenticationManagerBean

        @Bean
        public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()
                                                                                                    throws Exception
        Overridden to expose the AuthenticationManager as a Spring bean.
        Overrides:
        authenticationManagerBean in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        Throws:
        Exception
        See Also:
        WebSecurityConfigurerAdapter.authenticationManagerBean()
      • configure

        public void configure​(org.springframework.security.config.annotation.web.builders.WebSecurity web)
        Allow anonymous access to resources by default.
        Specified by:
        configure in interface org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,​org.springframework.security.config.annotation.web.builders.WebSecurity>
        Overrides:
        configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter