Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface CsrfTokenRepository
Known subtypesCookieCsrfTokenRepository, HttpSessionCsrfTokenRepository
Where a chain keeps the CSRF token it expects a client to send back.
Methods
Method details
generateToken
public abstract CsrfToken generateToken(HttpServer.Request request)A new token, not yet stored.
saveToken
public abstract void saveToken(CsrfToken token, HttpServer.Request request)Stores
token for the client; null forgets the stored one.loadToken
public abstract CsrfToken loadToken(HttpServer.Request request)The stored token, or null when the client has none.