Package de.dlr.proseo.planner
Klasse ProductionPlannerSecurityConfig
java.lang.Object
de.dlr.proseo.planner.ProductionPlannerSecurityConfig
Security configuration for the prosEO planner module. Configures access permissions and authentication mechanisms.
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) org.springframework.security.web.SecurityFilterChain
filterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures the security filter chain for HTTP requests.String[]
parseAuthenticationHeader
(String authHeader) Parses an HTTP authentication header into a username and a password.(Package privat) org.springframework.security.crypto.password.PasswordEncoder
Provides the default password encoder for prosEO (BCrypt).(Package privat) org.springframework.security.core.userdetails.UserDetailsService
Provides the default user details service for prosEO based on the standard data model for users and groups.
-
Konstruktordetails
-
ProductionPlannerSecurityConfig
public ProductionPlannerSecurityConfig()
-
-
Methodendetails
-
parseAuthenticationHeader
Parses an HTTP authentication header into a username and a password.- Parameter:
authHeader
- The authentication header to parse.- Gibt zurück:
- A string array containing the username and the password.
- Löst aus:
IllegalArgumentException
- If the authentication header cannot be parsed.
-
filterChain
@Bean org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configures the security filter chain for HTTP requests. Defines access permissions based on user roles.- Parameter:
http
- The HTTP security object.- Gibt zurück:
- A configured SecurityFilterChain object.
- Löst aus:
Exception
-
passwordEncoder
@Bean org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()Provides the default password encoder for prosEO (BCrypt).- Gibt zurück:
- A BCryptPasswordEncoder instance.
-
userDetailsService
@Bean org.springframework.security.core.userdetails.UserDetailsService userDetailsService()Provides the default user details service for prosEO based on the standard data model for users and groups.- Gibt zurück:
- A JdbcDaoImpl object.
-