Class MessageMatcherDelegatingAuthorizationManager
java.lang.Object
org.springframework.security.messaging.access.intercept.MessageMatcherDelegatingAuthorizationManager
- All Implemented Interfaces:
AuthorizationManager<org.springframework.messaging.Message<?>>
public final class MessageMatcherDelegatingAuthorizationManager
extends Object
implements AuthorizationManager<org.springframework.messaging.Message<?>>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder forMessageMatcherDelegatingAuthorizationManager
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forMessageMatcherDelegatingAuthorizationManager
.check
(Supplier<Authentication> authentication, org.springframework.messaging.Message<?> message) Delegates to a specificAuthorizationManager
based on aMessageMatcher
evaluation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.authorization.AuthorizationManager
verify
-
Method Details
-
check
public AuthorizationDecision check(Supplier<Authentication> authentication, org.springframework.messaging.Message<?> message) Delegates to a specificAuthorizationManager
based on aMessageMatcher
evaluation.- Specified by:
check
in interfaceAuthorizationManager<org.springframework.messaging.Message<?>>
- Parameters:
authentication
- theSupplier
of theAuthentication
to checkmessage
- theMessage
to check- Returns:
- an
AuthorizationDecision
. If there is noMessageMatcher
matching the message, or theAuthorizationManager
could not decide, then null is returned
-
builder
Creates a builder forMessageMatcherDelegatingAuthorizationManager
.- Returns:
- the new
MessageMatcherDelegatingAuthorizationManager.Builder
instance
-