Interface IAuthenticationRequest

All Known Implementing Classes:
AuthenticationRequest

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

    Modifier and Type
    Method
    Description
    boolean
    Returns a boolean indicating whether this request has a parameter with the specified name
    javax.servlet.http.Cookie[]
    Implementation of HttpServletRequest.getCookies().
    Implementation of HttpServletRequest.getHeader(String name).
    Returns the credentials entered into the standard Saga login form.
    Implementation of ServletRequest.getParameter(String name).
  • 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

      javax.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)
    • getParameter

      String getParameter(String name)

      Implementation of ServletRequest.getParameter(String name).

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

      boolean containsParameter(String name)
      Returns a boolean indicating whether this request has a parameter with the specified name
      Returns:
      a boolean indicating if the request has the parameter name