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 Details

  • Constructor Details

    • WebhookSecurityConfig

      public WebhookSecurityConfig()
  • Method Details

    • greenButtonRequestMatcher

      @Bean @ConditionalOnProperty(value="region-connector.us.green.button.enabled", havingValue="true") public org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder greenButtonRequestMatcher()
    • 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.PathPatternRequestMatcher.Builder mvcRequestMatcher, tools.jackson.databind.ObjectMapper mapper, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, GreenButtonConfiguration config) throws Exception
      Throws:
      Exception