Class SecurityUtils

java.lang.Object
energy.eddie.spring.regionconnector.extensions.SecurityUtils

public class SecurityUtils extends Object
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 Type
    Method
    Description
    static org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder
    mvcRequestMatcher(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector, String regionConnectorId)
     
    static org.springframework.security.web.SecurityFilterChain
    securityFilterChain(org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder mvcRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, JwtAuthorizationManager jwtHeaderAuthorizationManager, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, com.fasterxml.jackson.databind.ObjectMapper mapper, Iterable<String> authorizationPaths, Iterable<String> publicPaths)
     

    Methods inherited from class java.lang.Object

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

    • securityFilterChain

      public static org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder mvcRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, JwtAuthorizationManager jwtHeaderAuthorizationManager, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, com.fasterxml.jackson.databind.ObjectMapper mapper, Iterable<String> authorizationPaths, Iterable<String> publicPaths) throws Exception
      Throws:
      Exception
    • mvcRequestMatcher

      public static org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder mvcRequestMatcher(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector, String regionConnectorId)