public interface CookieSigner
This interface should not be used as a general purpose MAC utility.
Modifier and Type | Method and Description |
---|---|
play.api.libs.crypto.CookieSigner |
asScala() |
String |
sign(String message)
Signs the given String using the application's secret key.
|
String |
sign(String message,
byte[] key)
Signs the given String using the given key.
|
String sign(String message)
application.crypto.provider
in application.conf
.message
- The message to sign.String sign(String message, byte[] key)
application.crypto.provider
in application.conf
.message
- The message to sign.key
- The private key to sign with.play.api.libs.crypto.CookieSigner asScala()