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.ObjectA builder forRequestMatcherDelegatingAuthorizationManager.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestMatcherDelegatingAuthorizationManager.Builderadd(RequestMatcher matcher, org.springframework.security.authorization.AuthorizationManager<RequestAuthorizationContext> manager)Maps aRequestMatcherto anAuthorizationManager.RequestMatcherDelegatingAuthorizationManagerbuild()Creates aRequestMatcherDelegatingAuthorizationManagerinstance.RequestMatcherDelegatingAuthorizationManager.Buildermappings(java.util.function.Consumer<java.util.List<RequestMatcherEntry<org.springframework.security.authorization.AuthorizationManager<RequestAuthorizationContext>>>> mappingsConsumer)Allows to configure theRequestMatchertoAuthorizationManagermappings.
-
-
-
Method Detail
-
add
public RequestMatcherDelegatingAuthorizationManager.Builder add(RequestMatcher matcher, org.springframework.security.authorization.AuthorizationManager<RequestAuthorizationContext> manager)
Maps aRequestMatcherto anAuthorizationManager.- Parameters:
matcher- theRequestMatcherto usemanager- theAuthorizationManagerto use- Returns:
- the
RequestMatcherDelegatingAuthorizationManager.Builderfor further customizations
-
mappings
public RequestMatcherDelegatingAuthorizationManager.Builder mappings(java.util.function.Consumer<java.util.List<RequestMatcherEntry<org.springframework.security.authorization.AuthorizationManager<RequestAuthorizationContext>>>> mappingsConsumer)
Allows to configure theRequestMatchertoAuthorizationManagermappings.- Parameters:
mappingsConsumer- used to configure theRequestMatchertoAuthorizationManagermappings.- Returns:
- the
RequestMatcherDelegatingAuthorizationManager.Builderfor further customizations - Since:
- 5.7
-
build
public RequestMatcherDelegatingAuthorizationManager build()
Creates aRequestMatcherDelegatingAuthorizationManagerinstance.- Returns:
- the
RequestMatcherDelegatingAuthorizationManagerinstance
-
-