Class RequestMatcherDelegatingAuthorizationManager.Builder
java.lang.Object
org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager.Builder
- Enclosing class:
- RequestMatcherDelegatingAuthorizationManager
A builder for
RequestMatcherDelegatingAuthorizationManager.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(RequestMatcher matcher, AuthorizationManager<RequestAuthorizationContext> manager) Maps aRequestMatcherto anAuthorizationManager.build()Creates aRequestMatcherDelegatingAuthorizationManagerinstance.mappings(Consumer<List<RequestMatcherEntry<AuthorizationManager<RequestAuthorizationContext>>>> mappingsConsumer) Allows to configure theRequestMatchertoAuthorizationManagermappings.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
public RequestMatcherDelegatingAuthorizationManager.Builder add(RequestMatcher matcher, AuthorizationManager<RequestAuthorizationContext> manager) Maps aRequestMatcherto anAuthorizationManager.- Parameters:
matcher- theRequestMatcherto usemanager- theAuthorizationManagerto use- Returns:
- the
RequestMatcherDelegatingAuthorizationManager.Builderfor further customizations
-
mappings
public RequestMatcherDelegatingAuthorizationManager.Builder mappings(Consumer<List<RequestMatcherEntry<AuthorizationManager<RequestAuthorizationContext>>>> mappingsConsumer) Allows to configure theRequestMatchertoAuthorizationManagermappings.- Parameters:
mappingsConsumer- used to configure theRequestMatchertoAuthorizationManagermappings.- Returns:
- the
RequestMatcherDelegatingAuthorizationManager.Builderfor further customizations - Since:
- 5.7
-
build
Creates aRequestMatcherDelegatingAuthorizationManagerinstance.- Returns:
- the
RequestMatcherDelegatingAuthorizationManagerinstance
-