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 classA builder forMessageMatcherDelegatingAuthorizationManager. -
Method Summary
Modifier and TypeMethodDescription@Nullable AuthorizationResultauthorize(Supplier<? extends @Nullable 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, waitMethods inherited from interface org.springframework.security.authorization.AuthorizationManager
verify
-
Method Details
-
authorize
public @Nullable AuthorizationResult authorize(Supplier<? extends @Nullable Authentication> authentication, org.springframework.messaging.Message<?> message) Description copied from interface:AuthorizationManagerDetermines if access is granted for a specific authentication and object.- Specified by:
authorizein interfaceAuthorizationManager<org.springframework.messaging.Message<?>>- Parameters:
authentication- theSupplierof theAuthenticationto authorizemessage- theAuthorizationManagerobject to authorize- Returns:
- an
AuthorizationResult
-
builder
Creates a builder forMessageMatcherDelegatingAuthorizationManager.- Returns:
- the new
MessageMatcherDelegatingAuthorizationManager.Builderinstance
-