Class MessageAuthorizationContext<T>
java.lang.Object
org.springframework.security.messaging.access.intercept.MessageAuthorizationContext<T>
An
Message authorization context.- Since:
- 5.8
-
Constructor Summary
ConstructorsConstructorDescriptionMessageAuthorizationContext(org.springframework.messaging.Message<T> message) Creates an instance.MessageAuthorizationContext(org.springframework.messaging.Message<T> message, Map<String, String> variables) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.Message<T>Returns theHttpServletRequest.Returns the extracted variable values where the key is the variable name and the value is the variable value.
-
Constructor Details
-
MessageAuthorizationContext
Creates an instance.- Parameters:
message- theHttpServletRequestto use
-
MessageAuthorizationContext
public MessageAuthorizationContext(org.springframework.messaging.Message<T> message, Map<String, String> variables) Creates an instance.- Parameters:
message- theHttpServletRequestto usevariables- a map containing key-value pairs representing extracted variable names and variable values
-
-
Method Details
-
getMessage
Returns theHttpServletRequest.- Returns:
- the
HttpServletRequestto use
-
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
-