Package security
Class WebSecurityConfig
java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
security.WebSecurityConfig
- All Implemented Interfaces:
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
@Import(MethodSecurityConfig.class)
public class WebSecurityConfig
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Author:
- Abdulin Ildar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationManager
protected void
configure
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) void
configure
(org.springframework.security.config.annotation.web.builders.WebSecurity web) void
configureGlobal
(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) org.springframework.security.web.AuthenticationEntryPoint
protected void
httpConfigure
(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) protected boolean
org.springframework.security.kerberos.authentication.KerberosAuthenticationProvider
kerberosAuthenticationProvider
(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) org.springframework.security.kerberos.authentication.KerberosServiceAuthenticationProvider
kerberosServiceAuthenticationProvider
(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) kerberosUserDetailsWrapperService
(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) org.springframework.security.crypto.password.PasswordEncoder
org.springframework.web.filter.RequestContextFilter
protected void
org.springframework.security.kerberos.web.authentication.SpnegoAuthenticationProcessingFilter
spnegoAuthenticationProcessingFilter
(org.springframework.security.authentication.AuthenticationManager authenticationManager) org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidator
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
Constructor Details
-
WebSecurityConfig
public WebSecurityConfig()
-
-
Method Details
-
setSecurityStrategyName
@PostConstruct protected void setSecurityStrategyName() -
configureGlobal
@Autowired public void configureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception - Throws:
Exception
-
passwordEncoder
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder() -
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
httpConfigure
protected void httpConfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) throws Exception - Throws:
Exception
-
isKerberosActive
protected boolean isKerberosActive() -
authenticationManagerBean
@Bean(name="authenticationManager") public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean() throws Exception- Overrides:
authenticationManagerBean
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
requestContextFilter
@Bean public org.springframework.web.filter.RequestContextFilter requestContextFilter() -
jwtAuthenticationFilter
- Throws:
Exception
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception - Specified by:
configure
in interfaceorg.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,
org.springframework.security.config.annotation.web.builders.WebSecurity> - Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
certificateService
@Bean @AuthMethodConditional({CERT_OVER_DB,CERT_OVER_LDAP}) public CertificateService certificateService() -
kerberosAuthenticationProvider
@Bean @AuthMethodConditional(KERBEROS) public org.springframework.security.kerberos.authentication.KerberosAuthenticationProvider kerberosAuthenticationProvider(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) -
entryPoint
public org.springframework.security.web.AuthenticationEntryPoint entryPoint() -
spnegoAuthenticationProcessingFilter
@Bean @AuthMethodConditional(KERBEROS) public org.springframework.security.kerberos.web.authentication.SpnegoAuthenticationProcessingFilter spnegoAuthenticationProcessingFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager) -
kerberosUserDetailsWrapperService
public KerberosUserDetailsWrapperService kerberosUserDetailsWrapperService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) -
kerberosServiceAuthenticationProvider
@Bean @AuthMethodConditional(KERBEROS) public org.springframework.security.kerberos.authentication.KerberosServiceAuthenticationProvider kerberosServiceAuthenticationProvider(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) throws FileNotFoundException - Throws:
FileNotFoundException
-
sunJaasKerberosTicketValidator
@Bean @AuthMethodConditional(KERBEROS) public org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidator sunJaasKerberosTicketValidator() throws FileNotFoundException- Throws:
FileNotFoundException
-