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.config.Customizer<org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>.org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry>
     
    org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>.org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry>
    authorizeHttpRequestsCustomizerWithScopes(org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder restRequestMatcher)
     
    org.springframework.security.oauth2.jwt.JwtDecoder
    jwtDecoder(org.springframework.core.env.Environment environment)
     
    org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder
    restRequestMatcher(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector)
     
    org.springframework.security.web.SecurityFilterChain
    restSecurityFilterChain(org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder restRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, org.springframework.security.oauth2.jwt.JwtDecoder decoder, org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>.org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry> authCustomizer)
     

    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.MvcRequestMatcher.Builder restRequestMatcher(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector)
    • 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.MvcRequestMatcher.Builder restRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, org.springframework.security.oauth2.jwt.JwtDecoder decoder, org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>.org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry> authCustomizer) throws Exception
      Throws:
      Exception
    • 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)
    • authorizeHttpRequestsCustomizer

      @Bean @ConditionalOnExpression("${outbound-connector.rest.enabled:false} and ${outbound-connector.rest.oauth2.enabled:false} and !${outbound-connector.rest.oauth2.scopes.enabled:false}") public org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>.org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry> authorizeHttpRequestsCustomizer()
    • authorizeHttpRequestsCustomizerWithScopes

      @Bean @ConditionalOnExpression("${outbound-connector.rest.enabled:false} and ${outbound-connector.rest.oauth2.enabled:false} and ${outbound-connector.rest.oauth2.scopes.enabled:false}") public org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>.org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry> authorizeHttpRequestsCustomizerWithScopes(org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder restRequestMatcher)