Class RequestMatcherDelegatingAuthorizationManager
java.lang.Object
org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager
- All Implemented Interfaces:
org.springframework.security.authorization.AuthorizationManager<jakarta.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthorizationManager
extends Object
implements org.springframework.security.authorization.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 org.springframework.security.authorization.AuthorizationResultauthorize(Supplier<? extends @Nullable org.springframework.security.core.Authentication> authentication, jakarta.servlet.http.HttpServletRequest request) 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 org.springframework.security.authorization.AuthorizationResult authorize(Supplier<? extends @Nullable org.springframework.security.core.Authentication> authentication, jakarta.servlet.http.HttpServletRequest request) - Specified by:
authorizein interfaceorg.springframework.security.authorization.AuthorizationManager<jakarta.servlet.http.HttpServletRequest>
-
builder
Creates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builderinstance
-