Package org.salespointframework
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<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 theAuthenticationManagerBuilder
to work with theUserDetailsService
implementation as well as thePasswordEncoder
we provide.- Author:
- Oliver Gierke
-
-
Constructor Summary
Constructors Constructor Description SalespointSecurityConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.authentication.AuthenticationManager
authenticationManagerBean()
Overridden to expose theAuthenticationManager
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
-
-
-
-
Method Detail
-
configure
protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder amBuilder) throws Exception
- Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
authenticationManagerBean
@Bean public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean() throws Exception
Overridden to expose theAuthenticationManager
as a Spring bean.- Overrides:
authenticationManagerBean
in classorg.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 interfaceorg.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
- Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
-