Package de.dlr.proseo.prodclmgr
Klasse ProductClassSecurityConfig
java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
de.dlr.proseo.prodclmgr.ProductClassSecurityConfig
- Alle implementierten Schnittstellen:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,
,org.springframework.security.config.annotation.web.builders.WebSecurity> org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
@Configuration
@EnableWebSecurity
public class ProductClassSecurityConfig
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Security configuration for prosEO ProductClassManager module
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
configure
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Set the ProductClassManager security optionsvoid
initialize
(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder builder) Initialize the users, passwords and roles for the ProductClassManager from the prosEO databaseorg.springframework.security.crypto.password.PasswordEncoder
Provides the default password encoder for prosEO (BCrypt)org.springframework.security.core.userdetails.UserDetailsService
Provides the default user details service for prosEO (based on the standard data model for users and groups)Von Klasse geerbte Methoden org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsServiceBean
-
Konstruktordetails
-
ProductClassSecurityConfig
public ProductClassSecurityConfig()
-
-
Methodendetails
-
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Set the ProductClassManager security options- Setzt außer Kraft:
configure
in Klasseorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Parameter:
http
- the HTTP security object- Löst aus:
Exception
-
initialize
@Autowired public void initialize(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder builder) throws Exception Initialize the users, passwords and roles for the ProductClassManager from the prosEO database- Parameter:
builder
- to manage authentications- Löst aus:
Exception
- if anything goes wrong with JDBC authentication
-
passwordEncoder
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()Provides the default password encoder for prosEO (BCrypt)- Gibt zurück:
- a BCryptPasswordEncoder
-
userDetailsService
@Bean public 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)- Setzt außer Kraft:
userDetailsService
in Klasseorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Gibt zurück:
- a JdbcDaoImpl object
-