Class RequestMatcherDelegatingAuthorizationManager.Builder
java.lang.Object
org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager.Builder
- Enclosing class:
- RequestMatcherDelegatingAuthorizationManager
A builder for
RequestMatcherDelegatingAuthorizationManager
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(RequestMatcher matcher, AuthorizationManager<RequestAuthorizationContext> manager) Maps aRequestMatcher
to anAuthorizationManager
.build()
Creates aRequestMatcherDelegatingAuthorizationManager
instance.mappings
(Consumer<List<RequestMatcherEntry<AuthorizationManager<RequestAuthorizationContext>>>> mappingsConsumer) Allows to configure theRequestMatcher
toAuthorizationManager
mappings.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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(Consumer<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
Creates aRequestMatcherDelegatingAuthorizationManager
instance.- Returns:
- the
RequestMatcherDelegatingAuthorizationManager
instance
-