Package energy.eddie.outbound.rest
Class RestSecurityConfig
java.lang.Object
energy.eddie.outbound.rest.RestSecurityConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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.JwtDecoderjwtDecoder(org.springframework.core.env.Environment environment) org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.BuilderrestRequestMatcher(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector) org.springframework.security.web.SecurityFilterChainrestSecurityFilterChain(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)
-
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)
-