Package de.dlr.proseo.planner
Class ProductionPlannerSecurityConfig
java.lang.Object
de.dlr.proseo.planner.ProductionPlannerSecurityConfig
Security configuration for the prosEO planner module. Configures access permissions and authentication mechanisms.
- Author:
- Ernst Melchinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.security.web.SecurityFilterChainfilterChain(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 private) org.springframework.security.crypto.password.PasswordEncoderProvides the default password encoder for prosEO (BCrypt).(package private) org.springframework.security.core.userdetails.UserDetailsServiceProvides the default user details service for prosEO based on the standard data model for users and groups.
-
Constructor Details
-
ProductionPlannerSecurityConfig
public ProductionPlannerSecurityConfig()
-
-
Method Details
-
parseAuthenticationHeader
Parses an HTTP authentication header into a username and a password.- Parameters:
authHeader- The authentication header to parse.- Returns:
- A string array containing the username and the password.
- Throws:
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.- Parameters:
http- The HTTP security object.- Returns:
- A configured SecurityFilterChain object.
- Throws:
Exception
-
passwordEncoder
@Bean org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()Provides the default password encoder for prosEO (BCrypt).- Returns:
- 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.- Returns:
- A JdbcDaoImpl object.
-