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 TypeMethodDescription@Nullable AuthorizationResultauthorize(Supplier<? extends @Nullable Authentication> authentication, jakarta.servlet.http.HttpServletRequest request) Determines if access is granted for a specific authentication and object.builder()Creates a builder forRequestMatcherDelegatingAuthorizationManager.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
verify
-
Method Details
-
authorize
public @Nullable AuthorizationResult authorize(Supplier<? extends @Nullable Authentication> authentication, jakarta.servlet.http.HttpServletRequest request) Description copied from interface:AuthorizationManagerDetermines if access is granted for a specific authentication and object.- Specified by:
authorizein interfaceAuthorizationManager<jakarta.servlet.http.HttpServletRequest>- Parameters:
authentication- theSupplierof theAuthenticationto authorizerequest- theAuthorizationManagerobject to authorize- Returns:
- an
AuthorizationResult
-
builder
Creates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builderinstance
-