@Configuration
@EnableWebSecurity
public class SalespointSecurityConfiguration
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
AuthenticationManagerBuilder
to work with the
UserDetailsService
implementation as well as the PasswordEncoder
we provide.Constructor and Description |
---|
SalespointSecurityConfiguration() |
Modifier and Type | Method and 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.
|
authenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder amBuilder) throws Exception
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Exception
@Bean public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean() throws Exception
AuthenticationManager
as a Spring bean.authenticationManagerBean
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Exception
WebSecurityConfigurerAdapter.authenticationManagerBean()
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception
configure
in interface org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Exception
Copyright © 2019. All rights reserved.