Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public interface SecurityContextRepository

Known subtypesHttpSessionSecurityContextRepository, NullSecurityContextRepository

Where a chain keeps who is signed in between one request and the next.

Methods

public abstract SecurityContext loadContext(HttpServer.Request request)The context stored for request’s client; an empty one when there is none.
public abstract void saveContext(SecurityContext context, HttpServer.Request request)Stores context for the client’s later requests.
public abstract boolean containsContext(HttpServer.Request request)Whether anything is stored for request’s client.

Method details

loadContext

public abstract SecurityContext loadContext(HttpServer.Request request)
The context stored for request’s client; an empty one when there is none.

saveContext

public abstract void saveContext(SecurityContext context, HttpServer.Request request)
Stores context for the client’s later requests. An empty context, or an anonymous one, removes what was stored.

containsContext

public abstract boolean containsContext(HttpServer.Request request)
Whether anything is stored for request’s client.