Class DelegatingAuthorizationManager
- java.lang.Object
-
- org.springframework.security.web.access.intercept.DelegatingAuthorizationManager
-
- All Implemented Interfaces:
AuthorizationManager<javax.servlet.http.HttpServletRequest>
public final class DelegatingAuthorizationManager 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
DelegatingAuthorizationManager.Builder
A builder forDelegatingAuthorizationManager
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DelegatingAuthorizationManager.Builder
builder()
Creates a builder forDelegatingAuthorizationManager
.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 DelegatingAuthorizationManager.Builder builder()
Creates a builder forDelegatingAuthorizationManager
.- Returns:
- the new
DelegatingAuthorizationManager.Builder
instance
-
-