@Singleton public class DefaultCookieSigner extends java.lang.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() |
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.
|
@Inject public DefaultCookieSigner(play.api.libs.crypto.CookieSigner signer)
public java.lang.String sign(java.lang.String message)
sign
in interface CookieSigner
message
- The message to sign.public java.lang.String sign(java.lang.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