public class TokenManager extends Object
Modifier and Type | Method and Description |
---|---|
static void |
createToken(Controller controller,
String tokenName,
int secondsOfTimeOut)
Create Token.
|
static void |
init(ITokenCache tokenCache) |
static boolean |
validateToken(Controller controller,
String tokenName)
Check token to prevent resubmit.
|
public static void init(ITokenCache tokenCache)
public static void createToken(Controller controller, String tokenName, int secondsOfTimeOut)
Controller
- tokenName
- token namesecondsOfTimeOut
- seconds of time out, for ITokenCache only.public static boolean validateToken(Controller controller, String tokenName)
tokenName
- the token name used in view's formCopyright © 2018. All rights reserved.