Class SalespointSecurityConfiguration

java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
org.salespointframework.SalespointSecurityConfiguration
All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<jakarta.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.authentication.AuthenticationManager
    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

    Methods inherited from class java.lang.Object

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

    • SalespointSecurityConfiguration

      public SalespointSecurityConfiguration()
  • Method Details

    • 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<jakarta.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
      Overrides:
      configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter