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
 
 public final class RequestMatcherDelegatingWebInvocationPrivilegeEvaluator extends java.lang.Object implements WebInvocationPrivilegeEvaluator, org.springframework.web.context.ServletContextAware AWebInvocationPrivilegeEvaluatorwhich delegates to a list ofWebInvocationPrivilegeEvaluatorbased on aRequestMatcherevaluation- Since:
- 5.5.5
 
- 
- 
Constructor SummaryConstructors Constructor Description RequestMatcherDelegatingWebInvocationPrivilegeEvaluator(java.util.List<RequestMatcherEntry<java.util.List<WebInvocationPrivilegeEvaluator>>> requestMatcherPrivilegeEvaluatorsEntries)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAllowed(java.lang.String contextPath, java.lang.String uri, java.lang.String method, Authentication authentication)Determines whether the user represented by the supplied Authentication object is allowed to invoke the supplied URI.booleanisAllowed(java.lang.String uri, Authentication authentication)Determines whether the user represented by the supplied Authentication object is allowed to invoke the supplied URI.voidsetServletContext(javax.servlet.ServletContext servletContext)
 
- 
- 
- 
Constructor Detail- 
RequestMatcherDelegatingWebInvocationPrivilegeEvaluatorpublic RequestMatcherDelegatingWebInvocationPrivilegeEvaluator(java.util.List<RequestMatcherEntry<java.util.List<WebInvocationPrivilegeEvaluator>>> requestMatcherPrivilegeEvaluatorsEntries) 
 
- 
 - 
Method Detail- 
isAllowedpublic boolean isAllowed(java.lang.String uri, Authentication authentication)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(java.lang.String contextPath, java.lang.String uri, java.lang.String method, Authentication authentication)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(javax.servlet.ServletContext servletContext) - Specified by:
- setServletContextin interface- org.springframework.web.context.ServletContextAware
 
 
- 
 
-