Class HttpRequestResponseHolder

java.lang.Object
org.springframework.security.web.context.HttpRequestResponseHolder

public final class HttpRequestResponseHolder extends Object
Used to pass the incoming request to SecurityContextRepository.loadContext(HttpRequestResponseHolder), allowing the method to swap the request for a wrapped version, as well as returning the SecurityContext value.
Since:
3.0
  • Constructor Details

    • HttpRequestResponseHolder

      public HttpRequestResponseHolder(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
  • Method Details

    • getRequest

      public jakarta.servlet.http.HttpServletRequest getRequest()
    • setRequest

      public void setRequest(jakarta.servlet.http.HttpServletRequest request)
    • getResponse

      public jakarta.servlet.http.HttpServletResponse getResponse()
    • setResponse

      public void setResponse(jakarta.servlet.http.HttpServletResponse response)