Interface IAXSRFTVendingMachine
- All Known Implementing Classes:
BaseAXSRFTVendingMachine
,SecretBasedAXSRFTVendingMachine
,SessionBasedAXSRFTVendingMachine
public interface IAXSRFTVendingMachine
Manages anti-cross-site-request-forgery (CSRF/XSRF) tokens.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptToken
(FacesContext context, String token) Returns true if the specified anti-cross-site-request-forgery token is valid for the specified user.boolean
acceptToken
(HttpServletRequest request, String token) Returns true if the specified anti-cross-site-request-forgery token is valid for the specified user.produceToken
(String user) Produces an anti-cross-site-request-forgery token for the specified user.produceToken
(FacesContext context) Produces an anti-cross-site-request-forgery token for the specified user.produceToken
(HttpServletRequest request) Produces an anti-cross-site-request-forgery token for the specified user.
-
Method Details
-
produceToken
Produces an anti-cross-site-request-forgery token for the specified user. -
produceToken
Produces an anti-cross-site-request-forgery token for the specified user. -
produceToken
Produces an anti-cross-site-request-forgery token for the specified user. -
acceptToken
Returns true if the specified anti-cross-site-request-forgery token is valid for the specified user. -
acceptToken
Returns true if the specified anti-cross-site-request-forgery token is valid for the specified user.
-