Class RequestMatcherDelegatingAuthorizationManager.Builder
- java.lang.Object
-
- org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager.Builder
-
- Enclosing class:
- RequestMatcherDelegatingAuthorizationManager
public static final class RequestMatcherDelegatingAuthorizationManager.Builder extends java.lang.Object
A builder forRequestMatcherDelegatingAuthorizationManager
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestMatcherDelegatingAuthorizationManager.Builder
add(RequestMatcher matcher, AuthorizationManager<RequestAuthorizationContext> manager)
Maps aRequestMatcher
to anAuthorizationManager
.RequestMatcherDelegatingAuthorizationManager
build()
Creates aRequestMatcherDelegatingAuthorizationManager
instance.RequestMatcherDelegatingAuthorizationManager.Builder
mappings(java.util.function.Consumer<java.util.List<RequestMatcherEntry<AuthorizationManager<RequestAuthorizationContext>>>> mappingsConsumer)
Allows to configure theRequestMatcher
toAuthorizationManager
mappings.
-
-
-
Method Detail
-
add
public RequestMatcherDelegatingAuthorizationManager.Builder add(RequestMatcher matcher, AuthorizationManager<RequestAuthorizationContext> manager)
Maps aRequestMatcher
to anAuthorizationManager
.- Parameters:
matcher
- theRequestMatcher
to usemanager
- theAuthorizationManager
to use- Returns:
- the
RequestMatcherDelegatingAuthorizationManager.Builder
for further customizations
-
mappings
public RequestMatcherDelegatingAuthorizationManager.Builder mappings(java.util.function.Consumer<java.util.List<RequestMatcherEntry<AuthorizationManager<RequestAuthorizationContext>>>> mappingsConsumer)
Allows to configure theRequestMatcher
toAuthorizationManager
mappings.- Parameters:
mappingsConsumer
- used to configure theRequestMatcher
toAuthorizationManager
mappings.- Returns:
- the
RequestMatcherDelegatingAuthorizationManager.Builder
for further customizations - Since:
- 5.7
-
build
public RequestMatcherDelegatingAuthorizationManager build()
Creates aRequestMatcherDelegatingAuthorizationManager
instance.- Returns:
- the
RequestMatcherDelegatingAuthorizationManager
instance
-
-