Package de.dlr.proseo.ui.gui
Class SpringSecurityConfig
java.lang.Object
de.dlr.proseo.ui.gui.SpringSecurityConfig
Configuration class for Spring Security. Enables web security and provides customization for authentication and authorization.
Extends WebSecurityConfigurerAdapter to override default configurations. Configures the authentication filter, URL permissions,
login and logout pages, and CSRF protection. Uses a GUIAuthenticationProvider for authentication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationManagerauthenticationManager(org.springframework.security.config.annotation.web.builders.HttpSecurity http) (package private) org.springframework.security.authentication.AuthenticationManagerProvides the authentication manager, which manages authentication attempts within the application.(package private) org.springframework.security.web.SecurityFilterChainfilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures the HTTP security settings, including the authentication filter, URL permissions, login and logout pages, and CSRF protection.
-
Constructor Details
-
SpringSecurityConfig
public SpringSecurityConfig()
-
-
Method Details
-
authenticationManager
@Bean public org.springframework.security.authentication.AuthenticationManager authenticationManager(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
filterChain
@Bean org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configures the HTTP security settings, including the authentication filter, URL permissions, login and logout pages, and CSRF protection.- Parameters:
http- the HttpSecurity object to be configured- Throws:
Exception- if an error occurs during configuration
-
authenticationManagerBean
@Bean org.springframework.security.authentication.AuthenticationManager authenticationManagerBean() throws ExceptionProvides the authentication manager, which manages authentication attempts within the application.- Returns:
- An instance of AuthenticationManager configured with the GUIAuthenticationProvider.
- Throws:
Exception- if an error occurs during the instantiation of AuthenticationManager.
-