Class SecurityUtils
java.lang.Object
energy.eddie.spring.regionconnector.extensions.SecurityUtils
This class provides methods that create a security config for region-connectors that require a manuel response by the
final customers. For example, the Fingrid and Datadis region-connector.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.BuilderpathPatternRequestMatcher(String regionConnectorId) static org.springframework.security.web.SecurityFilterChainsecurityFilterChain(org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder patternRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, JwtAuthorizationManager jwtHeaderAuthorizationManager, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, tools.jackson.databind.ObjectMapper mapper, Iterable<String> authorizationPaths, Iterable<String> publicPaths)
-
Method Details
-
pathPatternRequestMatcher
public static org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder pathPatternRequestMatcher(String regionConnectorId)