@Configuration(proxyBeanMethods=false)
@EnableGlobalMethodSecurity(prePostEnabled=true)
public class WebSecurityConfig
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
AUTHORIZATION_HEADER
The constant AUTHORIZATION_HEADER.
|
static String |
AUTHORIZATION_TOKEN
The constant AUTHORIZATION_TOKEN.
|
static String |
SECURITY_IGNORE_URLS_SPILT_CHAR
The constant SECURITY_IGNORE_URLS_SPILT_CHAR.
|
static String |
TOKEN_PREFIX
The constant TOKEN_PREFIX.
|
| 构造器和说明 |
|---|
WebSecurityConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.authentication.AuthenticationManager |
authenticationManagerBean() |
protected void |
configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) |
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
void |
configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) |
org.springframework.security.crypto.password.PasswordEncoder |
passwordEncoder()
Password encoder password encoder.
|
authenticationManager, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBeanpublic static final String AUTHORIZATION_HEADER
public static final String AUTHORIZATION_TOKEN
public static final String SECURITY_IGNORE_URLS_SPILT_CHAR
@Bean(name="org.springframework.security.authenticationManager")
public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()
throws Exception
authenticationManagerBean 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterExceptionprotected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
throws Exception
configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterExceptionpublic void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web)
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.WebSecurityConfigurerAdapterprotected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterException@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
Copyright © 2022 Seata. All rights reserved.