Packages

c

play.api.mvc

DefaultFlashCookieBaker

class DefaultFlashCookieBaker extends FlashCookieBaker with FallbackCookieDataCodec

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultFlashCookieBaker
  2. FallbackCookieDataCodec
  3. FlashCookieBaker
  4. CookieDataCodec
  5. CookieBaker
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultFlashCookieBaker()
  2. new DefaultFlashCookieBaker(config: FlashConfiguration, secretConfiguration: SecretConfiguration, cookieSigner: CookieSigner)
    Annotations
    @Inject()

Value Members

  1. def COOKIE_NAME: String

    The cookie name.

    The cookie name.

    Definition Classes
    FlashCookieBakerCookieBaker
  2. val config: FlashConfiguration
  3. val cookieSigner: CookieSigner
  4. def decode(encodedData: String): Map[String, String]

    Decodes from an encoded String.

    Decodes from an encoded String.

    Definition Classes
    FallbackCookieDataCodecCookieDataCodec
  5. def decodeCookieToMap(cookie: Option[Cookie]): Map[String, String]

    Decodes the data from a Cookie.

    Decodes the data from a Cookie.

    Definition Classes
    CookieBaker
  6. def decodeFromCookie(cookie: Option[Cookie]): Flash

    Decodes the data from a Cookie.

    Decodes the data from a Cookie.

    Definition Classes
    CookieBaker
  7. def deserialize(data: Map[String, String]): Flash

    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
    FlashCookieBakerCookieBaker
  8. def discard: DiscardingCookie
    Definition Classes
    CookieBaker
  9. def domain: Option[String]

    The cookie domain.

    The cookie domain. Defaults to None.

    Definition Classes
    FlashCookieBakerCookieBaker
  10. lazy val emptyCookie: Flash

    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
    FlashCookieBakerCookieBaker
  11. def encode(data: Map[String, String]): String

    Encodes the data as a String.

    Encodes the data as a String.

    Definition Classes
    FallbackCookieDataCodecCookieDataCodec
  12. def encodeAsCookie(data: Flash): Cookie

    Encodes the data as a Cookie.

    Encodes the data as a Cookie.

    Definition Classes
    CookieBaker
  13. 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
    FlashCookieBakerCookieBaker
  14. def isSigned: Boolean

    true if the Cookie is signed.

    true if the Cookie is signed. Defaults to false.

    Definition Classes
    CookieBaker
  15. val jwtCodec: JWTCookieDataCodec
  16. def maxAge: Option[Int]

    The cookie expiration date in seconds, None for a transient cookie

    The cookie expiration date in seconds, None for a transient cookie

    Definition Classes
    CookieBaker
  17. def path: String

    The cookie path.

    The cookie path.

    Definition Classes
    FlashCookieBakerCookieBaker
  18. 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
    FlashCookieBakerCookieBaker
  19. val secretConfiguration: SecretConfiguration
  20. 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
    FlashCookieBakerCookieBaker
  21. def serialize(flash: Flash): 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
    FlashCookieBakerCookieBaker
  22. val signedCodec: UrlEncodedCookieDataCodec