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
Nested ClassesModifier and TypeClassDescriptionstatic final class
A builder forMessageMatcherDelegatingAuthorizationManager
. -
Method Summary
Modifier and TypeMethodDescriptionauthorize
(Supplier<Authentication> authentication, org.springframework.messaging.Message<?> message) Determines if access is granted for a specific authentication and object.builder()
Creates a builder forMessageMatcherDelegatingAuthorizationManager
.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
-
authorize
public AuthorizationResult authorize(Supplier<Authentication> authentication, org.springframework.messaging.Message<?> message) Description copied from interface:AuthorizationManager
Determines if access is granted for a specific authentication and object.- Specified by:
authorize
in interfaceAuthorizationManager<org.springframework.messaging.Message<?>>
- Parameters:
authentication
- theSupplier
of theAuthentication
to authorizemessage
- theAuthorizationManager
object to authorize- Returns:
- an
AuthorizationResult
-
builder
Creates a builder forMessageMatcherDelegatingAuthorizationManager
.- Returns:
- the new
MessageMatcherDelegatingAuthorizationManager.Builder
instance
-