@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.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
SalespointSecurityConfiguration.MethodSecurityConfiguration |
| Modifier and Type | Field and Description |
|---|---|
(package private) org.springframework.security.crypto.password.PasswordEncoder |
passwordEncoder |
(package private) org.springframework.security.core.userdetails.UserDetailsService |
userDetailsService |
| 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@Autowired org.springframework.security.core.userdetails.UserDetailsService userDetailsService
@Autowired org.springframework.security.crypto.password.PasswordEncoder passwordEncoder
protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder amBuilder)
throws Exception
configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterException@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.WebSecurityConfigurerAdapterExceptionWebSecurityConfigurerAdapter.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.WebSecurityConfigurerAdapterExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.