public abstract class WebSecurityConfiguration
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| 构造器和说明 |
|---|
WebSecurityConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.authentication.AuthenticationManager |
authenticationManagerBean()
Authorized manager
|
protected void |
configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
Configure user authentication management
Password encryption method
passwordEncoder()
|
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Disable basic http
|
void |
configure(org.springframework.security.config.annotation.web.builders.WebSecurity web)
Configure SpringSecurity Web
Set a list of paths to exclude security intercepts
|
protected List<String> |
configureIgnoreUrls()
Configure Excluded Path List
|
protected abstract boolean |
disableCsrf()
Disable csrf
This method is an abstract method, and the logic is implemented by subclasses
|
protected abstract boolean |
disableHttpBasic()
Disable basic http
This method is an abstract method, and the logic is implemented by subclasses
|
protected abstract org.springframework.security.web.access.AccessDeniedHandler |
getAccessDeniedHandler()
Get spring security exception handler
This method is left to the implementation class to obtain the customized
AccessDeniedHandler implementation class IOC instance from the project
If the implementation class does not return an instance,
the default DefaultSecurityAccessDeniedHandler is used to return
|
protected abstract org.springframework.security.web.AuthenticationEntryPoint |
getAuthenticationEntryPoint()
Get authentication endpoint processing
|
org.springframework.security.crypto.password.PasswordEncoder |
passwordEncoder()
Password encryption method
|
authenticationManager, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBeanprotected List<String> configureIgnoreUrls()
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web)
Set a list of paths to exclude security intercepts
configure 在接口中 org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterweb - WebSecurityprotected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
throws Exception
Password encryption method passwordEncoder()
configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterauth - AuthenticationManagerBuilderException - exception@Bean
public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()
throws Exception
authenticationManagerBean 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterAuthenticationManagerException - exceptionprotected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterhttp - HttpSecurityException - exception@Bean @ConditionalOnMissingBean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
BCryptPasswordEncoderPasswordEncoderprotected abstract org.springframework.security.web.access.AccessDeniedHandler getAccessDeniedHandler()
This method is left to the implementation class to obtain the customized AccessDeniedHandler implementation class IOC instance from the project
If the implementation class does not return an instance,
the default DefaultSecurityAccessDeniedHandler is used to return
AccessDeniedHandlerprotected abstract org.springframework.security.web.AuthenticationEntryPoint getAuthenticationEntryPoint()
AuthenticationEntryPointprotected abstract boolean disableHttpBasic()
This method is an abstract method, and the logic is implemented by subclasses
protected abstract boolean disableCsrf()
This method is an abstract method, and the logic is implemented by subclasses
Copyright © 2020. All rights reserved.