Class RequestMatcherDelegatingWebInvocationPrivilegeEvaluator
java.lang.Object
org.springframework.security.web.access.RequestMatcherDelegatingWebInvocationPrivilegeEvaluator
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware,- WebInvocationPrivilegeEvaluator,- org.springframework.web.context.ServletContextAware
@Deprecated
public final class RequestMatcherDelegatingWebInvocationPrivilegeEvaluator
extends Object
implements WebInvocationPrivilegeEvaluator, org.springframework.web.context.ServletContextAware
Deprecated.
A 
WebInvocationPrivilegeEvaluator which delegates to a list of
 WebInvocationPrivilegeEvaluator based on a
 RequestMatcher evaluation- Since:
- 5.5.5
- 
Constructor SummaryConstructorsConstructorDescriptionRequestMatcherDelegatingWebInvocationPrivilegeEvaluator(List<RequestMatcherEntry<List<WebInvocationPrivilegeEvaluator>>> requestMatcherPrivilegeEvaluatorsEntries) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisAllowed(String contextPath, String uri, String method, Authentication authentication) Deprecated.Determines whether the user represented by the supplied Authentication object is allowed to invoke the supplied URI.booleanisAllowed(String uri, Authentication authentication) Deprecated.Determines whether the user represented by the supplied Authentication object is allowed to invoke the supplied URI.voidsetServletContext(jakarta.servlet.ServletContext servletContext) Deprecated.
- 
Constructor Details- 
RequestMatcherDelegatingWebInvocationPrivilegeEvaluatorpublic RequestMatcherDelegatingWebInvocationPrivilegeEvaluator(List<RequestMatcherEntry<List<WebInvocationPrivilegeEvaluator>>> requestMatcherPrivilegeEvaluatorsEntries) Deprecated.
 
- 
- 
Method Details- 
isAllowedDeprecated.Determines whether the user represented by the supplied Authentication object is allowed to invoke the supplied URI.Uses the provided URI in the RequestMatcher.matches(HttpServletRequest)for everyRequestMatcherconfigured. If noRequestMatcheris matched, or if there is not an availableWebInvocationPrivilegeEvaluator, returnstrue.- Specified by:
- isAllowedin interface- WebInvocationPrivilegeEvaluator
- Parameters:
- uri- the URI excluding the context path (a default context path setting will be used)
- Returns:
- true if access is allowed, false if denied
 
- 
isAllowedpublic boolean isAllowed(String contextPath, String uri, String method, Authentication authentication) Deprecated.Determines whether the user represented by the supplied Authentication object is allowed to invoke the supplied URI.Uses the provided URI in the RequestMatcher.matches(HttpServletRequest)for everyRequestMatcherconfigured. If noRequestMatcheris matched, or if there is not an availableWebInvocationPrivilegeEvaluator, returnstrue.- Specified by:
- isAllowedin interface- WebInvocationPrivilegeEvaluator
- Parameters:
- uri- the URI excluding the context path (a default context path setting will be used)
- contextPath- the context path (may be null, in which case a default value will be used).
- method- the HTTP method (or null, for any method)
- authentication- the Authentication instance whose authorities should be used in evaluation whether access should be granted.
- Returns:
- true if access is allowed, false if denied
 
- 
setServletContextpublic void setServletContext(jakarta.servlet.ServletContext servletContext) Deprecated.- Specified by:
- setServletContextin interface- org.springframework.web.context.ServletContextAware
 
 
- 
AuthorizationManagerWebInvocationPrivilegeEvaluatorand adapt any delegateWebInvocationPrivilegeEvaluators intoAuthorizationManagers