trait SessionCookieBaker extends CookieBaker[Session] with CookieDataCodec
- Alphabetic
- By Inheritance
- SessionCookieBaker
- CookieDataCodec
- CookieBaker
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def config: SessionConfiguration
- abstract def decode(data: String): Map[String, String]
Decodes from an encoded
String
.Decodes from an encoded
String
.- Definition Classes
- CookieDataCodec
- abstract def encode(data: Map[String, String]): String
Encodes the data as a
String
.Encodes the data as a
String
.- Definition Classes
- CookieDataCodec
Concrete Value Members
- def COOKIE_NAME: String
The cookie name.
The cookie name.
- Definition Classes
- SessionCookieBaker → CookieBaker
- def decodeCookieToMap(cookie: Option[Cookie]): Map[String, String]
Decodes the data from a
Cookie
.Decodes the data from a
Cookie
.- Definition Classes
- CookieBaker
- def decodeFromCookie(cookie: Option[Cookie]): Session
Decodes the data from a
Cookie
.Decodes the data from a
Cookie
.- Definition Classes
- CookieBaker
- def deserialize(data: Map[String, String]): Session
Builds the cookie object from the given data map.
Builds the cookie object from the given data map.
- data
the data map to build the cookie object
- returns
a new cookie object
- Definition Classes
- SessionCookieBaker → CookieBaker
- def discard: DiscardingCookie
- Definition Classes
- CookieBaker
- def domain: Option[String]
The cookie domain.
The cookie domain. Defaults to None.
- Definition Classes
- SessionCookieBaker → CookieBaker
- lazy val emptyCookie: Session
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.
- Definition Classes
- SessionCookieBaker → CookieBaker
- def encodeAsCookie(data: Session): Cookie
Encodes the data as a
Cookie
.Encodes the data as a
Cookie
.- Definition Classes
- CookieBaker
- def httpOnly: Boolean
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.- Definition Classes
- SessionCookieBaker → CookieBaker
- val isSigned: Boolean
true
if the Cookie is signed.true
if the Cookie is signed. Defaults to false.- Definition Classes
- SessionCookieBaker → CookieBaker
- def maxAge: Option[Int]
The cookie expiration date in seconds,
None
for a transient cookieThe cookie expiration date in seconds,
None
for a transient cookie- Definition Classes
- SessionCookieBaker → CookieBaker
- def path: String
The cookie path.
The cookie path.
- Definition Classes
- SessionCookieBaker → CookieBaker
- def sameSite: Option[SameSite]
The value of the SameSite attribute of the cookie.
The value of the SameSite attribute of the cookie. Defaults to no SameSite.
- Definition Classes
- SessionCookieBaker → CookieBaker
- def secure: Boolean
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.- Definition Classes
- SessionCookieBaker → CookieBaker
- def serialize(session: Session): Map[String, String]
Converts the given cookie object into a data map.
Converts the given cookie object into a data map.
- returns
a new
Map
storing the key-value pairs for the given cookie
- Definition Classes
- SessionCookieBaker → CookieBaker