Class WebhookSecurityConfig
java.lang.Object
energy.eddie.regionconnector.us.green.button.security.WebhookSecurityConfig
@EnableConfigurationProperties(GreenButtonConfiguration.class)
@ConditionalOnProperty(value="region-connector.us.green.button.enabled",
havingValue="true")
public class WebhookSecurityConfig
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.BuildergreenButtonMvcRequestMatcher(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector) org.springframework.security.web.SecurityFilterChainwebhookFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder mvcRequestMatcher, com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, GreenButtonConfiguration config)
-
Field Details
-
US_GREEN_BUTTON_ENABLED
- See Also:
-
-
Constructor Details
-
WebhookSecurityConfig
public WebhookSecurityConfig()
-
-
Method Details
-
greenButtonMvcRequestMatcher
@Bean @ConditionalOnProperty(value="region-connector.us.green.button.enabled", havingValue="true") public org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder greenButtonMvcRequestMatcher(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector) -
webhookFilterChain
@Bean @ConditionalOnProperty(name="region-connector.us.green.button.enabled", havingValue="true") public org.springframework.security.web.SecurityFilterChain webhookFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, @Qualifier("greenButtonMvcRequestMatcher") org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder mvcRequestMatcher, com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, GreenButtonConfiguration config) throws Exception - Throws:
Exception
-