Class RequestMatcherDelegatingAuthorizationManager
- java.lang.Object
-
- org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager
-
- All Implemented Interfaces:
org.springframework.security.authorization.AuthorizationManager<javax.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthorizationManager extends java.lang.Object implements org.springframework.security.authorization.AuthorizationManager<javax.servlet.http.HttpServletRequest>AnAuthorizationManagerwhich delegates to a specificAuthorizationManagerbased on aRequestMatcherevaluation.- Since:
- 5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestMatcherDelegatingAuthorizationManager.BuilderA builder forRequestMatcherDelegatingAuthorizationManager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestMatcherDelegatingAuthorizationManager.Builderbuilder()Creates a builder forRequestMatcherDelegatingAuthorizationManager.org.springframework.security.authorization.AuthorizationDecisioncheck(java.util.function.Supplier<org.springframework.security.core.Authentication> authentication, javax.servlet.http.HttpServletRequest request)Delegates to a specificAuthorizationManagerbased on aRequestMatcherevaluation.
-
-
-
Method Detail
-
check
public org.springframework.security.authorization.AuthorizationDecision check(java.util.function.Supplier<org.springframework.security.core.Authentication> authentication, javax.servlet.http.HttpServletRequest request)Delegates to a specificAuthorizationManagerbased on aRequestMatcherevaluation.- Specified by:
checkin interfaceorg.springframework.security.authorization.AuthorizationManager<javax.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
public static RequestMatcherDelegatingAuthorizationManager.Builder builder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builderinstance
-
-