Package de.dlr.proseo.ingestor
Klasse IngestorSecurityConfig
java.lang.Object
de.dlr.proseo.ingestor.IngestorSecurityConfig
Security configuration for prosEO Ingestor module
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) org.springframework.security.web.SecurityFilterChainfilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Set the Ingestor security optionsString[]parseAuthenticationHeader(String authHeader) Parse an HTTP authentication header into username and password(Package privat) org.springframework.security.crypto.password.PasswordEncoderProvides the default password encoder for prosEO (BCrypt)(Package privat) org.springframework.security.core.userdetails.UserDetailsServiceProvides the default user details service for prosEO (based on the standard data model for users and groups)
-
Konstruktordetails
-
IngestorSecurityConfig
public IngestorSecurityConfig()
-
-
Methodendetails
-
parseAuthenticationHeader
Parse an HTTP authentication header into username and 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 Set the Ingestor security options- Parameter:
http- the HTTP security 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
-
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
-