Interface LoginCookieManager


public interface LoginCookieManager
This class is responsible for managing authentication cookie.
  • Method Details

    • setLoginCookie

      void setLoginCookie(@NotNull @NotNull HttpServletRequest request, @NotNull @NotNull HttpServletResponse response, @NotNull @NotNull Credentials creds)
      Set the login cookie in the response after a successful authentication.
      Parameters:
      request -
      response -
      creds -
    • verifyLoginCookie

      @Nullable @Nullable AuthenticationInfo verifyLoginCookie(@NotNull @NotNull HttpServletRequest request)
      Verify the login cookie in the request. If the Authentication Handler do not verify the cookie, return null.
      Parameters:
      request -
      Returns:
      AuthenticationInfo
    • getLoginCookie

      @Nullable @Nullable Cookie getLoginCookie(@NotNull @NotNull HttpServletRequest request)
      Get the login cookie from the request. If the Authentication Handler do not verify the cookie, return null.
      Parameters:
      request -
      Returns:
      Cookie