Class SpringSecurityConfig

java.lang.Object
de.dlr.proseo.ui.gui.SpringSecurityConfig

@Configuration @EnableWebSecurity public class SpringSecurityConfig extends Object
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.authentication.AuthenticationManager
    authenticationManager(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
     
    (package private) org.springframework.security.authentication.AuthenticationManager
    Provides the authentication manager, which manages authentication attempts within the application.
    (package private) 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 Exception
      Provides 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.