public class CookieSigner extends Object
Constructor and Description |
---|
CookieSigner(byte[] secret)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
signCookie(String str)
Sign the cookie given the string token as input.
|
String |
verifyAndExtract(String signedStr)
Verify a signed string and extracts the original string.
|
public CookieSigner(byte[] secret)
secret
- Secret BytesCopyright © 2016 The Apache Software Foundation. All rights reserved.