class DefaultCookieSigner extends CookieSigner
Ordering
- Alphabetic
- By Inheritance
Inherited
- DefaultCookieSigner
- CookieSigner
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DefaultCookieSigner(secretConfiguration: SecretConfiguration)
- Annotations
- @Inject()
Value Members
- def asJava: libs.crypto.CookieSigner
- returns
the Java version for this cookie signer.
- Definition Classes
- CookieSigner
- 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
inapplication.conf
.- message
The message to sign.
- returns
A hexadecimal encoded signature.
- Definition Classes
- → CookieSigner
- 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
inapplication.conf
.- message
The message to sign.
- key
The private key to sign with.
- returns
A hexadecimal encoded signature.
- Definition Classes
- → CookieSigner
Uses an HMAC-SHA1 for signing cookies.