Class WebFilterChainProxy.DefaultWebFilterChainDecorator
java.lang.Object
org.springframework.security.web.server.WebFilterChainProxy.DefaultWebFilterChainDecorator
- All Implemented Interfaces:
WebFilterChainProxy.WebFilterChainDecorator
- Enclosing class:
- WebFilterChainProxy
public static class WebFilterChainProxy.DefaultWebFilterChainDecorator
extends Object
implements WebFilterChainProxy.WebFilterChainDecorator
A
WebFilterChainProxy.WebFilterChainDecorator that uses the DefaultWebFilterChain- Since:
- 6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.server.WebFilterChaindecorate(org.springframework.web.server.WebFilterChain original) Provide a newFilterChainthat accounts for needed security considerations when there are no security filters.org.springframework.web.server.WebFilterChaindecorate(org.springframework.web.server.WebFilterChain original, List<org.springframework.web.server.WebFilter> filters) Provide a newFilterChainthat accounts for the provided filters as well as the original filter chain.
-
Constructor Details
-
DefaultWebFilterChainDecorator
public DefaultWebFilterChainDecorator()
-
-
Method Details
-
decorate
public org.springframework.web.server.WebFilterChain decorate(org.springframework.web.server.WebFilterChain original) Provide a newFilterChainthat accounts for needed security considerations when there are no security filters.- Specified by:
decoratein interfaceWebFilterChainProxy.WebFilterChainDecorator- Parameters:
original- the originalFilterChain- Returns:
- a security-enabled
FilterChain
-
decorate
public org.springframework.web.server.WebFilterChain decorate(org.springframework.web.server.WebFilterChain original, List<org.springframework.web.server.WebFilter> filters) Provide a newFilterChainthat accounts for the provided filters as well as the original filter chain.- Specified by:
decoratein interfaceWebFilterChainProxy.WebFilterChainDecorator- Parameters:
original- the originalFilterChainfilters- the security filters- Returns:
- a security-enabled
FilterChainthat includes the provided filters
-