@Conditional(value=SecurityConditions.AnySecurityEnabled.class) @Configuration @EnableWebSecurity public class SecurityConfig extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Constructor and Description |
---|
SecurityConfig() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.authentication.AuthenticationManager |
authenticationManagerBean() |
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
void |
configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) |
protected void |
configureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
Configure the global authentication manager.
|
authenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
@Bean public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean() throws java.lang.Exception
authenticationManagerBean
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
java.lang.Exception
@Autowired protected void configureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws java.lang.Exception
auth
- The builder to configurejava.lang.Exception
- on errorpublic void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws java.lang.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
java.lang.Exception
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
java.lang.Exception