Class MessageMatcherDelegatingAuthorizationManager

java.lang.Object
org.springframework.security.messaging.access.intercept.MessageMatcherDelegatingAuthorizationManager
All Implemented Interfaces:
org.springframework.security.authorization.AuthorizationManager<org.springframework.messaging.Message<?>>

public final class MessageMatcherDelegatingAuthorizationManager extends Object implements org.springframework.security.authorization.AuthorizationManager<org.springframework.messaging.Message<?>>
  • Method Details

    • check

      @Deprecated public org.springframework.security.authorization.AuthorizationDecision check(Supplier<org.springframework.security.core.Authentication> authentication, org.springframework.messaging.Message<?> message)
      Deprecated.
      please use AuthorizationManager.authorize(Supplier, Object) instead
      Delegates to a specific AuthorizationManager based on a MessageMatcher evaluation.
      Specified by:
      check in interface org.springframework.security.authorization.AuthorizationManager<org.springframework.messaging.Message<?>>
      Parameters:
      authentication - the Supplier of the Authentication to check
      message - the Message to check
      Returns:
      an AuthorizationDecision. If there is no MessageMatcher matching the message, or the AuthorizationManager could not decide, then null is returned
    • builder

      Returns:
      the new MessageMatcherDelegatingAuthorizationManager.Builder instance