Class MessageAuthorizationContext<T>

java.lang.Object
org.springframework.security.messaging.access.intercept.MessageAuthorizationContext<T>

public final class MessageAuthorizationContext<T> extends Object
An Message authorization context.
Since:
5.8
  • Constructor Details

    • MessageAuthorizationContext

      public MessageAuthorizationContext(org.springframework.messaging.Message<T> message)
      Creates an instance.
      Parameters:
      message - the HttpServletRequest to use
    • MessageAuthorizationContext

      public MessageAuthorizationContext(org.springframework.messaging.Message<T> message, Map<String,String> variables)
      Creates an instance.
      Parameters:
      message - the HttpServletRequest to use
      variables - a map containing key-value pairs representing extracted variable names and variable values
  • Method Details

    • getMessage

      public org.springframework.messaging.Message<T> getMessage()
      Returns the HttpServletRequest.
      Returns:
      the HttpServletRequest to use
    • getVariables

      public Map<String,String> getVariables()
      Returns the extracted variable values where the key is the variable name and the value is the variable value.
      Returns:
      a map containing key-value pairs representing extracted variable names and variable values