Package org.xbricks.heimdall.config
Class HeimdalSecurityConfig
java.lang.Object
org.xbricks.heimdall.config.HeimdalSecurityConfig
@Configuration
@EnableWebSecurity
@ComponentScan("org.xbricks")
public class HeimdalSecurityConfig
extends Object
-
Constructor Summary
ConstructorDescriptionHeimdalSecurityConfig
(org.springframework.security.core.userdetails.UserDetailsService userDetailsService, org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler, org.springframework.security.web.authentication.AuthenticationSuccessHandler xbAuthenticationSuccessHandler, org.springframework.security.web.authentication.logout.LogoutSuccessHandler xbLogoutSuccessHandler, org.springframework.security.web.authentication.AuthenticationFailureHandler authenticationFailureHandler) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationManager
authManager
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) org.springframework.security.authentication.dao.DaoAuthenticationProvider
daoAuthenticationProvider
(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, org.springframework.security.core.userdetails.UserDetailsService userDetailsService) org.springframework.security.web.SecurityFilterChain
filterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) org.springframework.security.crypto.password.PasswordEncoder
-
Constructor Details
-
HeimdalSecurityConfig
public HeimdalSecurityConfig(org.springframework.security.core.userdetails.UserDetailsService userDetailsService, org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler, org.springframework.security.web.authentication.AuthenticationSuccessHandler xbAuthenticationSuccessHandler, org.springframework.security.web.authentication.logout.LogoutSuccessHandler xbLogoutSuccessHandler, org.springframework.security.web.authentication.AuthenticationFailureHandler authenticationFailureHandler)
-
-
Method Details
-
passwordEncoder
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder() -
daoAuthenticationProvider
@Bean public org.springframework.security.authentication.dao.DaoAuthenticationProvider daoAuthenticationProvider(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, org.springframework.security.core.userdetails.UserDetailsService userDetailsService) -
authManager
@Bean public org.springframework.security.authentication.AuthenticationManager authManager(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
filterChain
@Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-