Class SecurityConfiguration
java.lang.Object
org.qubership.atp.auth.springbootstarter.config.SecurityConfiguration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled=true)
@Profile("default")
public class SecurityConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureHttpSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configure HTTP Security.org.springframework.security.web.SecurityFilterChainfilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Filter chain.
-
Constructor Details
-
SecurityConfiguration
public SecurityConfiguration()
-
-
Method Details
-
configureHttpSecurity
public void configureHttpSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configure HTTP Security.- Parameters:
http- HTTP Security- Throws:
Exception- Exception
-
filterChain
@Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Filter chain.- Parameters:
http- HTTPSecurity object- Returns:
- Security Filter Chain
- Throws:
Exception- exception in case configuration problems.
-