Method Summary |
|
public synchronized String | generateToken(HttpServletRequest request) Generate a new transaction token, to be used for enforcing a single
request for a particular transaction. |
public synchronized String | generateToken(String id) Generate a new transaction token, to be used for enforcing a single
request for a particular transaction. |
public static TokenProcessor | getInstance() Retrieves the singleton instance of this class. |
public synchronized boolean | isTokenValid(HttpServletRequest request) Return true if there is a transaction token stored in
the user's current session, and the value submitted as a request
parameter with this action matches it. |
public synchronized boolean | isTokenValid(HttpServletRequest request, boolean reset) Return true if there is a transaction token stored in the
user's current session, and the value submitted as a request parameter
with this action matches it. |
public synchronized void | resetToken(HttpServletRequest request) Reset the saved transaction token in the user's session. |
public synchronized void | saveToken(HttpServletRequest request) Save a new transaction token in the user's current session, creating a
new session if necessary. |