@EnableWebSecurity
@Configuration
public class JKWebSecurityConfig
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| Constructor and Description |
|---|
JKWebSecurityConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.authentication.AuthenticationProvider |
authenticationProvider()
Authentication provider.
|
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Configure.
|
void |
configureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
Configure global.
|
org.springframework.security.web.firewall.HttpFirewall |
defaultHttpFirewall()
Default http firewall.
|
org.springframework.security.crypto.password.PasswordEncoder |
encoder()
Encoder.
|
javax.servlet.ServletContext |
getServletContext()
Gets the servlet context.
|
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBeanprotected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterhttp - the httpException - the exception@Autowired
public void configureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
throws Exception
auth - the authException - the exception@Bean public org.springframework.security.authentication.AuthenticationProvider authenticationProvider()
@Bean public org.springframework.security.crypto.password.PasswordEncoder encoder()
@Bean public org.springframework.security.web.firewall.HttpFirewall defaultHttpFirewall()
@Bean public javax.servlet.ServletContext getServletContext()
Copyright © 2023 Smart-Cloud. All rights reserved.