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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forRequestMatcherDelegatingAuthorizationManager. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forRequestMatcherDelegatingAuthorizationManager.check(Supplier<Authentication> authentication, jakarta.servlet.http.HttpServletRequest request) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.authorization.AuthorizationManager
authorize, 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 interfaceAuthorizationManager<jakarta.servlet.http.HttpServletRequest>- Parameters:
authentication- theSupplierof theAuthenticationto checkrequest- theHttpServletRequestto check- Returns:
- an
AuthorizationDecision. If there is noRequestMatchermatching the request, or theAuthorizationManagercould not decide, then null is returned
-
builder
Creates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builderinstance
-
AuthorizationManager.authorize(Supplier, Object)instead