Class AuthCookie
java.lang.Object
ch.tocco.nice2.web.core.api.servlet.AbstractNiceCookie
ch.tocco.nice2.web.core.api.servlet.AuthCookie
Implements the nice_auth cookie.
-
Field Summary
Fields inherited from class ch.tocco.nice2.web.core.api.servlet.AbstractNiceCookie
addedToResponse, content, expires
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getName()
getSpecificTokens
(jakarta.servlet.http.HttpServletRequest request) protected boolean
shouldBeSecured
(jakarta.servlet.http.HttpServletRequest request) Some of our automated tests run on a headless browser without an https connection.Methods inherited from class ch.tocco.nice2.web.core.api.servlet.AbstractNiceCookie
addToResponse, setExpires
-
Field Details
-
NAME
- See Also:
-
HEADER_PATTERN
-
-
Constructor Details
-
AuthCookie
-
-
Method Details
-
getSpecificTokens
- Specified by:
getSpecificTokens
in classAbstractNiceCookie
-
getName
- Specified by:
getName
in classAbstractNiceCookie
-
shouldBeSecured
protected boolean shouldBeSecured(jakarta.servlet.http.HttpServletRequest request) Some of our automated tests run on a headless browser without an https connection. Therefore it must be possible to use Tocco without https. On production, https is ensured through configuration of the server setup. We can be sure that the cookie is always safe on production.- Specified by:
shouldBeSecured
in classAbstractNiceCookie
- Parameters:
request
- the current request to the backend
-