Class RestSecurityConfig

java.lang.Object
energy.eddie.outbound.rest.RestSecurityConfig

public class RestSecurityConfig extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.oauth2.jwt.JwtDecoder
    jwtDecoder(org.springframework.core.env.Environment environment)
     
    org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder
     
    org.springframework.security.web.SecurityFilterChain
    restSecurityFilterChain(org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder restRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, org.springframework.security.oauth2.jwt.JwtDecoder decoder, boolean oauthEnabled, boolean oauthScopesEnabled)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RestSecurityConfig

      public RestSecurityConfig()
  • Method Details

    • restRequestMatcher

      @Bean @ConditionalOnExpression("${outbound-connector.rest.enabled:false} and ${outbound-connector.rest.oauth2.enabled:false}") public org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder restRequestMatcher()
    • restSecurityFilterChain

      @Bean @ConditionalOnExpression("${outbound-connector.rest.enabled:false} and ${outbound-connector.rest.oauth2.enabled:false}") public org.springframework.security.web.SecurityFilterChain restSecurityFilterChain(org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder restRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, org.springframework.security.oauth2.jwt.JwtDecoder decoder, @Value("${outbound-connector.rest.oauth2.enabled:false}") boolean oauthEnabled, @Value("${outbound-connector.rest.oauth2.scopes.enabled:false}") boolean oauthScopesEnabled)
    • jwtDecoder

      @Bean @ConditionalOnExpression("${outbound-connector.rest.enabled:false} and ${outbound-connector.rest.oauth2.enabled:false}") public org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder(org.springframework.core.env.Environment environment)