@EnableGlobalMethodSecurity(prePostEnabled=true)
public class NacosAuthConfig
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
AUTHORIZATION_HEADER |
static String |
CONSOLE_RESOURCE_NAME_PREFIX |
static String |
LOGIN_ENTRY_POINT |
static String |
SECURITY_IGNORE_URLS_SPILT_CHAR |
static String |
TOKEN_BASED_AUTH_ENTRY_POINT |
static String |
TOKEN_PREFIX |
static String |
UPDATE_PASSWORD_ENTRY_POINT |
| 构造器和说明 |
|---|
NacosAuthConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
authenticationManager, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBeanpublic 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.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.authentication.builders.AuthenticationManagerBuilder auth)
throws Exception
configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterExceptionprotected 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 © 2018–2022 Alibaba Group. All rights reserved.