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 the
AuthenticationManagerBuilder to work with the
UserDetailsService implementation as well as the PasswordEncoder we provide.- Author:
- Oliver Gierke
-
Constructor Summary
Constructors Constructor Description SalespointSecurityConfiguration() -
Method Summary
Modifier and Type Method Description org.springframework.security.authentication.AuthenticationManagerauthenticationManagerBean()Overridden to expose theAuthenticationManageras a Spring bean.protected voidconfigure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder amBuilder)voidconfigure(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 Details
-
SalespointSecurityConfiguration
public SalespointSecurityConfiguration()
-
-
Method Details
-
configure
protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder amBuilder) throws Exception- Overrides:
configurein classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter- Throws:
Exception
-
authenticationManagerBean
@Bean public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean() throws ExceptionOverridden to expose theAuthenticationManageras a Spring bean.- Overrides:
authenticationManagerBeanin 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:
configurein interfaceorg.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>- Overrides:
configurein classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-