Package de.dlr.proseo.ui.gui
Klasse 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.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) org.springframework.security.authentication.AuthenticationManager
Provides the authentication manager, which manages authentication attempts within the application.(Package privat) org.springframework.security.web.SecurityFilterChain
filterChain
(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.
-
Konstruktordetails
-
SpringSecurityConfig
public SpringSecurityConfig()
-
-
Methodendetails
-
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.- Parameter:
http
- the HttpSecurity object to be configured- Löst aus:
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.- Gibt zurück:
- An instance of AuthenticationManager configured with the GUIAuthenticationProvider.
- Löst aus:
Exception
- if an error occurs during the instantiation of AuthenticationManager.
-