trait CookieSigner extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- CookieSigner
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def sign(message: String): String
Signs (MAC) the given String using the application’s secret key.
Signs (MAC) the given String using the application’s secret key.
By default this uses the platform default JCE provider. This can be overridden by defining
play.http.secret.provider
inapplication.conf
.- message
The message to sign.
- returns
A hexadecimal encoded signature.
- abstract def sign(message: String, key: Array[Byte]): String
Signs (MAC) the given String using the given secret key.
Signs (MAC) the given String using the given secret key.
By default this uses the platform default JCE 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.
Concrete Value Members
- def asJava: libs.crypto.CookieSigner
- returns
the Java version for this cookie signer.
Authenticates a cookie by returning a message authentication code (MAC).
This trait should not be used as a general purpose MAC utility.