Class RequestMatcherDelegatingAuthorizationManager
- java.lang.Object
-
- org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager
-
- All Implemented Interfaces:
AuthorizationManager<javax.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthorizationManager extends java.lang.Object implements AuthorizationManager<javax.servlet.http.HttpServletRequest>
AnAuthorizationManager
which delegates to a specificAuthorizationManager
based on aRequestMatcher
evaluation.- Since:
- 5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestMatcherDelegatingAuthorizationManager.Builder
A builder forRequestMatcherDelegatingAuthorizationManager
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestMatcherDelegatingAuthorizationManager.Builder
builder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.AuthorizationDecision
check(java.util.function.Supplier<Authentication> authentication, javax.servlet.http.HttpServletRequest request)
Delegates to a specificAuthorizationManager
based on aRequestMatcher
evaluation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.security.authorization.AuthorizationManager
verify
-
-
-
-
Method Detail
-
check
public AuthorizationDecision check(java.util.function.Supplier<Authentication> authentication, javax.servlet.http.HttpServletRequest request)
Delegates to a specificAuthorizationManager
based on aRequestMatcher
evaluation.- Specified by:
check
in interfaceAuthorizationManager<javax.servlet.http.HttpServletRequest>
- Parameters:
authentication
- theSupplier
of theAuthentication
to checkrequest
- theHttpServletRequest
to check- Returns:
- an
AuthorizationDecision
. If there is noRequestMatcher
matching the request, or theAuthorizationManager
could not decide, then null is returned
-
builder
public static RequestMatcherDelegatingAuthorizationManager.Builder builder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builder
instance
-
-