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) Deprecated.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
authorize, verify
-
Method Details
-
check
@Deprecated public AuthorizationDecision check(Supplier<Authentication> authentication, org.springframework.messaging.Message<?> message) Deprecated.please useAuthorizationManager.authorize(Supplier, Object)
insteadDelegates 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
-
AuthorizationManager.authorize(Supplier, Object)
instead