Klasse 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.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    (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.

    Von Klasse geerbte Methoden java.lang.Object

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