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() |
java.lang.String |
sign(java.lang.String message)
Signs the given String using the application's secret key.
|
java.lang.String |
sign(java.lang.String message,
byte[] key)
Signs the given String using the given key.
|
java.lang.String sign(java.lang.String message)
application.crypto.provider
in application.conf
.message
- The message to sign.java.lang.String sign(java.lang.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()