November 2017
Intermediate to advanced
542 pages
14h 24m
English
FilterChainProxy removed the setFilterChainMap method in favor of constructor injection. For example, you may have the following:
FilterChainProxy filter = new FilterChainProxy();filter.setFilterChainMap(filterChainMap);
It should be replaced with:
FilterChainProxy filter = new FilterChainProxy(securityFilterChains);
FilterChainProxy also removed getFilterChainMap in favor of using getFilterChains, for example:
FilterChainProxy securityFilterChain = ... Map<RequestMatcher,List<Filter>> mappings = securityFilterChain.getFilterChainMap(); for(Map.Entry<RequestMatcher, List<Filter>> entry : mappings.entrySet()) { RequestMatcher matcher = entry.getKey(); boolean matches = matcher.matches(request); List<Filter> filters = entry.getValue(); ...Read now
Unlock full access