static CookieBuilder |
Cookie.builder() |
Creates a new cookie builder with secure, Strict SameSite and httpOnly selected.
|
CookieBuilder |
CookieBuilder.httpOnly(boolean httpOnly) |
Instructs browsers on whether or not the cookie can be accessed via JavaScript.
|
CookieBuilder |
CookieBuilder.makeSessionCookie() |
Makes this cookie expire when the browser session expires (which may be when the user closes their
browser).
|
static CookieBuilder |
CookieBuilder.newCookie() |
Creates a new session cookie
|
static CookieBuilder |
CookieBuilder.newSecureCookie() |
Creates a new session cookie that is only sent over HTTPS and cannot be accessed with JavaScript
with a Strict samesite policy applied.
|
CookieBuilder |
CookieBuilder.secure(boolean secure) |
Instructs clients on whether or not cookies can be sent over non-secure (HTTP) connections.
|
CookieBuilder |
CookieBuilder.withDomain(java.lang.String domain) |
Sets the host that clients should send the cookie over.
|
CookieBuilder |
CookieBuilder.withMaxAgeInSeconds(long maxAge) |
Specifies how long the cookie will last for.
|
CookieBuilder |
CookieBuilder.withName(java.lang.String name) |
Sets the name of the cookie.
|
CookieBuilder |
CookieBuilder.withPath(java.lang.String path) |
Sets the path prefix that the cookie will be sent with, or null to send to all paths.
|
CookieBuilder |
CookieBuilder.withSameSite(java.lang.String sameSiteValue) |
Sets the SameSite property of the cookie.
|
CookieBuilder |
CookieBuilder.withUrlEncodedValue(java.lang.String value) |
Sets the value of the cookie by URL Encoding the given value.
|
CookieBuilder |
CookieBuilder.withValue(java.lang.String value) |
Sets the value of the cookie.
|