Package org.springframework.security.web
Class FilterChainProxy.VirtualFilterChainDecorator
java.lang.Object
org.springframework.security.web.FilterChainProxy.VirtualFilterChainDecorator
- All Implemented Interfaces:
FilterChainProxy.FilterChainDecorator
- Enclosing class:
- FilterChainProxy
public static final class FilterChainProxy.VirtualFilterChainDecorator
extends Object
implements FilterChainProxy.FilterChainDecorator
A
FilterChainProxy.FilterChainDecorator
that uses the FilterChainProxy.VirtualFilterChain
- Since:
- 6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.FilterChain
decorate
(jakarta.servlet.FilterChain original) Provide a newFilterChain
that accounts for needed security considerations when there are no security filters.jakarta.servlet.FilterChain
Provide a newFilterChain
that accounts for the provided filters as well as the original filter chain.
-
Constructor Details
-
VirtualFilterChainDecorator
public VirtualFilterChainDecorator()
-
-
Method Details
-
decorate
public jakarta.servlet.FilterChain decorate(jakarta.servlet.FilterChain original) Provide a newFilterChain
that accounts for needed security considerations when there are no security filters.- Specified by:
decorate
in interfaceFilterChainProxy.FilterChainDecorator
- Parameters:
original
- the originalFilterChain
- Returns:
- a security-enabled
FilterChain
-
decorate
public jakarta.servlet.FilterChain decorate(jakarta.servlet.FilterChain original, List<jakarta.servlet.Filter> filters) Provide a newFilterChain
that accounts for the provided filters as well as the original filter chain.- Specified by:
decorate
in interfaceFilterChainProxy.FilterChainDecorator
- Parameters:
original
- the originalFilterChain
filters
- the security filters- Returns:
- a security-enabled
FilterChain
that includes the provided filters
-