Class SecurityConfig
java.lang.Object
callofproject.dev.authentication.config.SecurityConfig
This class is a Spring Configuration class that provides configuration for security.
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityConfig
(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Constructs a new SecurityConfig. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.SecurityFilterChain
securityFilterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configure security
-
Constructor Details
-
SecurityConfig
public SecurityConfig(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Constructs a new SecurityConfig.- Parameters:
authenticationProvider
- The AuthenticationProvider object to be injected.
-
-
Method Details
-
securityFilterChain
@Bean public org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configure security- Parameters:
http
- represent the http- Returns:
- SecurityFilterChain
- Throws:
Exception
- if something goes wrong
-