c

play.api.libs.crypto

DefaultCookieSigner

class DefaultCookieSigner extends CookieSigner

Uses an HMAC-SHA1 for signing cookies.

Source
CookieSigner.scala
Linear Supertypes
CookieSigner, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultCookieSigner
  2. CookieSigner
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultCookieSigner(secretConfiguration: SecretConfiguration)
    Annotations
    @Inject()

Value Members

  1. def asJava: libs.crypto.CookieSigner

    returns

    the Java version for this cookie signer.

    Definition Classes
    CookieSigner
  2. def sign(message: String): String

    Signs the given String with HMAC-SHA1 using the application’s secret key.

    Signs the given String with HMAC-SHA1 using the application’s secret key.

    By default this uses the platform default JSSE provider. This can be overridden by defining play.http.secret.provider in application.conf.

    message

    The message to sign.

    returns

    A hexadecimal encoded signature.

    Definition Classes
    CookieSigner
  3. def sign(message: String, key: Array[Byte]): String

    Signs the given String with HMAC-SHA1 using the given key.

    Signs the given String with HMAC-SHA1 using the given key.

    By default this uses the platform default JSSE provider. This can be overridden by defining play.http.secret.provider in application.conf.

    message

    The message to sign.

    key

    The private key to sign with.

    returns

    A hexadecimal encoded signature.

    Definition Classes
    CookieSigner