@Singleton public class DefaultCookieSigner extends Object implements CookieSigner
Constructor and Description |
---|
DefaultCookieSigner(play.api.libs.crypto.CookieSigner signer) |
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.
|
@Inject public DefaultCookieSigner(play.api.libs.crypto.CookieSigner signer)
public String sign(String message)
sign
in interface CookieSigner
message
- The message to sign.public String sign(String message, byte[] key)
sign
in interface CookieSigner
message
- The message to sign.key
- The private key to sign with.public play.api.libs.crypto.CookieSigner asScala()
asScala
in interface CookieSigner