Class AdminConsoleAuthenticationCookiesService
java.lang.Object
org.alfresco.repo.security.authentication.identityservice.admin.AdminConsoleAuthenticationCookiesService
Service to handle Admin Console authentication-related cookies.
-
Constructor Summary
ConstructorsConstructorDescriptionAdminConsoleAuthenticationCookiesService(SysAdminParams sysAdminParams, int cookieLifetime) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a cookie to the response.Get the cookie with the given name.voidresetCookie(String name, jakarta.servlet.http.HttpServletResponse servletResponse) Issue a cookie reset within the given response.
-
Constructor Details
-
AdminConsoleAuthenticationCookiesService
-
-
Method Details
-
getCookie
Get the cookie with the given name.- Parameters:
name- the name of the cookierequest- 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 cookievalue- the value of the cookieservletResponse- the response to add the cookie to
-
resetCookie
Issue a cookie reset within the given response.- Parameters:
name- the cookie to resetservletResponse- the response to issue the cookie reset
-