Class RequestMatcherDelegatingAuthorizationManager
java.lang.Object
org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager
- All Implemented Interfaces:
- AuthorizationManager<jakarta.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthorizationManager
extends Object
implements AuthorizationManager<jakarta.servlet.http.HttpServletRequest>
An 
AuthorizationManager which delegates to a specific
 AuthorizationManager based on a RequestMatcher evaluation.- Since:
- 5.5
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classA builder forRequestMatcherDelegatingAuthorizationManager.
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Creates a builder forRequestMatcherDelegatingAuthorizationManager.check(Supplier<Authentication> authentication, jakarta.servlet.http.HttpServletRequest request) Deprecated.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.authorization.AuthorizationManagerauthorize, verify
- 
Method Details- 
check@Deprecated public AuthorizationDecision check(Supplier<Authentication> authentication, jakarta.servlet.http.HttpServletRequest request) Deprecated.please useAuthorizationManager.authorize(Supplier, Object)insteadDelegates to a specificAuthorizationManagerbased on aRequestMatcherevaluation.- Specified by:
- checkin interface- AuthorizationManager<jakarta.servlet.http.HttpServletRequest>
- Parameters:
- authentication- the- Supplierof the- Authenticationto check
- request- the- HttpServletRequestto check
- Returns:
- an AuthorizationDecision. If there is noRequestMatchermatching the request, or theAuthorizationManagercould not decide, then null is returned
 
- 
builderCreates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
- the new RequestMatcherDelegatingAuthorizationManager.Builderinstance
 
 
- 
AuthorizationManager.authorize(Supplier, Object)instead