Class AdminAuthenticationCookiesService

java.lang.Object
org.alfresco.repo.security.authentication.identityservice.authentication.AdminAuthenticationCookiesService

public class AdminAuthenticationCookiesService extends Object
Service to handle Admin Console authentication-related cookies.
  • Constructor Details

    • AdminAuthenticationCookiesService

      public AdminAuthenticationCookiesService(SysAdminParams sysAdminParams, int cookieLifetime)
  • Method Details

    • getCookie

      public String getCookie(String name, jakarta.servlet.http.HttpServletRequest request)
      Get the cookie with the given name.
      Parameters:
      name - the name of the cookie
      request - the request that might contain the cookie
      Returns:
      the cookie, or null if the cookie cannot be found
    • addCookie

      public void addCookie(String name, String value, jakarta.servlet.http.HttpServletResponse servletResponse)
      Add a cookie to the response.
      Parameters:
      name - the name of the cookie
      value - the value of the cookie
      servletResponse - the response to add the cookie to
    • resetCookie

      public void resetCookie(String name, jakarta.servlet.http.HttpServletResponse servletResponse)
      Issue a cookie reset within the given response.
      Parameters:
      name - the cookie to reset
      servletResponse - the response to issue the cookie reset