Decodes from an encoded String
.
Decodes from an encoded String
.
Decodes the data from a Cookie
.
Decodes the data from a Cookie
.
Decodes the data from a Cookie
.
Decodes the data from a Cookie
.
Default cookie, returned in case of error or if missing in the HTTP headers.
Default cookie, returned in case of error or if missing in the HTTP headers.
Encodes the data as a String
.
Encodes the data as a String
.
Encodes the data as a Cookie
.
Encodes the data as a Cookie
.
The cookie name.
The cookie name.
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
Builds the cookie object from the given data map.
Builds the cookie object from the given data map.
the data map to build the cookie object
a new cookie object
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
The cookie domain.
The cookie domain. Defaults to None.
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
true
if the Cookie should have the httpOnly flag, disabling access from Javascript.
true
if the Cookie should have the httpOnly flag, disabling access from Javascript. Defaults to true.
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
true
if the Cookie is signed.
true
if the Cookie is signed. Defaults to false.
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
The cookie expiration date in seconds, None
for a transient cookie
The cookie expiration date in seconds, None
for a transient cookie
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
The cookie path.
The cookie path.
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
The value of the SameSite attribute of the cookie.
The value of the SameSite attribute of the cookie. Defaults to no SameSite.
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
true
if the Cookie should have the secure flag, restricting usage to https.
true
if the Cookie should have the secure flag, restricting usage to https. Defaults to false.
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
Converts the given cookie object into a data map.
Converts the given cookie object into a data map.
a new Map
storing the key-value pairs for the given cookie
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead
(Since version 2.6.0) Inject play.api.mvc.SessionCookieBaker instead