Interface CsrfTokenRepository
- All Known Implementing Classes:
CookieCsrfTokenRepository, HttpSessionCsrfTokenRepository
public interface CsrfTokenRepository
Where a chain keeps the CSRF token it expects a client to send back.
-
Method Summary
Modifier and TypeMethodDescriptiongenerateToken(HttpServer.Request request) A new token, not yet stored.loadToken(HttpServer.Request request) The stored token, or null when the client has none.voidsaveToken(CsrfToken token, HttpServer.Request request) Storestokenfor the client; null forgets the stored one.
-
Method Details
-
generateToken
A new token, not yet stored. -
saveToken
Storestokenfor the client; null forgets the stored one. -
loadToken
The stored token, or null when the client has none.
-