Interface IAuthenticationRequest


public interface IAuthenticationRequest
Defines an object to provide information of the authentication request.
  • Method Details

    • getLoginCredentials

      Optional<SagaLogin> getLoginCredentials()

      Returns the credentials entered into the standard Saga login form.

      This object contains the username and password used to login.

      If no login was performed, an Optional.empty() is returned instead

      Returns:
      the SagaLogin credentials object
    • getCookies

      jakarta.servlet.http.Cookie[] getCookies()

      Implementation of HttpServletRequest.getCookies().

      See Also:
      • HttpServletRequest.getCookies()
    • getHeader

      String getHeader(String name)

      Implementation of HttpServletRequest.getHeader(String name).

      See Also:
      • HttpServletRequest.getHeader(String name)
    • getAllHeaders

      Map<String,List<String>> getAllHeaders()
      Returns:
      all headers in the request
      See Also:
      • HttpServletRequest.getHeaderNames()
      • HttpServletRequest.getHeader(String name)
    • getParameter

      String getParameter(String name)

      Implementation of ServletRequest.getParameter(String name).

      See Also:
      • ServletRequest.getParameter(String name)
    • getParameterMap

      Map<String,String[]> getParameterMap()
      See Also:
      • ServletRequest.getParameterMap()
    • getInputStream

      jakarta.servlet.ServletInputStream getInputStream() throws IOException
      Reads the request body. This will cause the whole body to be buffered in memory, so it may have performance implications for large requests.
      Throws:
      IOException
    • getRequestURI

      String getRequestURI()
      See Also:
      • HttpServletRequest.getRequestURI()
    • getMethod

      String getMethod()
      See Also:
      • HttpServletRequest.getMethod()
    • getPathInfo

      String getPathInfo()
      See Also:
      • HttpServletRequest.getPathInfo()
    • getContentLength

      int getContentLength()
      See Also:
      • ServletRequest.getContentLength()