类 SecurityConfigure
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- io.edurt.datacap.server.configure.SecurityConfigure
-
- 所有已实现的接口:
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 @EnableGlobalMethodSecurity(prePostEnabled=true) public class SecurityConfigure extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
-
构造器概要
构造器 构造器 说明 SecurityConfigure(org.springframework.security.core.userdetails.UserDetailsService userDetailsService, JwtAuthEntryPoint unauthorizedHandler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AuthTokenFilterServiceauthenticationJwtTokenFilter()org.springframework.security.authentication.AuthenticationManagerauthenticationManagerBean()voidconfigure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder)protected voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)org.springframework.security.crypto.password.PasswordEncoderpasswordEncoder()-
从类继承的方法 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-
-
-
构造器详细资料
-
SecurityConfigure
public SecurityConfigure(org.springframework.security.core.userdetails.UserDetailsService userDetailsService, JwtAuthEntryPoint unauthorizedHandler)
-
-
方法详细资料
-
authenticationJwtTokenFilter
@Bean public AuthTokenFilterService authenticationJwtTokenFilter()
-
configure
public void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception- 覆盖:
configure在类中org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter- 抛出:
Exception
-
authenticationManagerBean
@Bean public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean() throws Exception- 覆盖:
authenticationManagerBean在类中org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter- 抛出:
Exception
-
passwordEncoder
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
-
-