Class IngestorSecurityConfig

java.lang.Object
de.dlr.proseo.ingestor.IngestorSecurityConfig

@Configuration @EnableWebSecurity public class IngestorSecurityConfig extends Object
Security configuration for prosEO Ingestor module
Author:
Dr. Thomas Bassler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) org.springframework.security.web.SecurityFilterChain
    filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Set the Ingestor security options
    Parse an HTTP authentication header into username and password
    (package private) org.springframework.security.crypto.password.PasswordEncoder
    Provides the default password encoder for prosEO (BCrypt)
    (package private) org.springframework.security.core.userdetails.UserDetailsService
    Provides the default user details service for prosEO (based on the standard data model for users and groups)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IngestorSecurityConfig

      public IngestorSecurityConfig()
  • Method Details

    • parseAuthenticationHeader

      public String[] parseAuthenticationHeader(String authHeader) throws IllegalArgumentException
      Parse an HTTP authentication header into username and 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
      Set the Ingestor security options
      Parameters:
      http - the HTTP security object
      Throws:
      Exception
    • passwordEncoder

      @Bean org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
      Provides the default password encoder for prosEO (BCrypt)
      Returns:
      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)
      Returns:
      a JdbcDaoImpl object