Class RequestAuthorizationContext
java.lang.Object
org.springframework.security.web.access.intercept.RequestAuthorizationContext
An
HttpServletRequest
authorization context.- Since:
- 5.5
-
Constructor Summary
ConstructorDescriptionRequestAuthorizationContext
(jakarta.servlet.http.HttpServletRequest request) Creates an instance.RequestAuthorizationContext
(jakarta.servlet.http.HttpServletRequest request, Map<String, String> variables) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequest
Returns theHttpServletRequest
.Returns the extracted variable values where the key is the variable name and the value is the variable value.
-
Constructor Details
-
RequestAuthorizationContext
public RequestAuthorizationContext(jakarta.servlet.http.HttpServletRequest request) Creates an instance.- Parameters:
request
- theHttpServletRequest
to use
-
RequestAuthorizationContext
public RequestAuthorizationContext(jakarta.servlet.http.HttpServletRequest request, Map<String, String> variables) Creates an instance.- Parameters:
request
- theHttpServletRequest
to usevariables
- a map containing key-value pairs representing extracted variable names and variable values
-
-
Method Details
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest()Returns theHttpServletRequest
.- Returns:
- the
HttpServletRequest
to 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
-