类 SinoSecurityConfiguration
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- net.sinodawn.boot.security.SinoSecurityConfiguration
-
- 所有已实现的接口:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>,org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
@Configuration @EnableWebSecurity public class SinoSecurityConfiguration extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringCUSTOM_SECURITY_CONFIGURE_FUNCTION_NAMEstatic StringLOGIN_ORG_ID_KEYstatic StringLOGIN_ROLE_ID_KEY
-
构造器概要
构造器 构造器 说明 SinoSecurityConfiguration()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.security.web.firewall.HttpFirewallallowUrlEncodedSlashHttpFirewall()org.springframework.security.authentication.AuthenticationProviderauthenticationProvider()protected voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)voidconfigure(org.springframework.security.config.annotation.web.builders.WebSecurity web)DefaultTokenBasedRememberMeServicesdefaultTokenBasedRememberMeServices()org.springframework.security.crypto.password.PasswordEncoderpasswordEncoder()org.springframework.security.web.authentication.RememberMeServicesrememberMeServices()org.springframework.security.core.userdetails.UserDetailsServiceuserDetailsService()-
从类继承的方法 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsServiceBean
-
-
-
-
方法详细资料
-
userDetailsService
@Bean public org.springframework.security.core.userdetails.UserDetailsService userDetailsService()
- 覆盖:
userDetailsService在类中org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
authenticationProvider
@Bean public org.springframework.security.authentication.AuthenticationProvider authenticationProvider()
-
rememberMeServices
@Bean public org.springframework.security.web.authentication.RememberMeServices rememberMeServices()
-
defaultTokenBasedRememberMeServices
@Bean public DefaultTokenBasedRememberMeServices defaultTokenBasedRememberMeServices()
-
passwordEncoder
@Bean @ConditionalOnMissingBean(org.springframework.security.crypto.password.PasswordEncoder.class) public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
-
allowUrlEncodedSlashHttpFirewall
@Bean public org.springframework.security.web.firewall.HttpFirewall allowUrlEncodedSlashHttpFirewall()
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception- 指定者:
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.WebSecurityConfigurerAdapter- 抛出:
Exception
-
-