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

public final class SessionManagementConfigurer

  1. Object
  2. SecurityConfigurer
  3. SessionManagementConfigurer

Whether a chain uses the HTTP session, and what happens to it at sign-in.

http.sessionManagement(session ->
        session.sessionCreationPolicy(SessionCreationPolicy.STATELESS));

Nested types

class SessionManagementConfigurer.SessionFixationConfigurerThe choices for SessionManagementConfigurer.sessionFixation.

Methods

public SessionManagementConfigurer sessionCreationPolicy(SessionCreationPolicy policy)See SessionCreationPolicy; IF_REQUIRED unless set.
public SessionManagementConfigurer sessionFixation(Customizer<SessionManagementConfigurer.SessionFixationConfigurer> sessionFixationCustomizer)What protects a sign-in from a session id planted on the client beforehand; the id is changed unless set otherwise.

Inherited methods

Method details

sessionCreationPolicy

public SessionManagementConfigurer sessionCreationPolicy(SessionCreationPolicy policy)
See SessionCreationPolicy; IF_REQUIRED unless set.

sessionFixation

public SessionManagementConfigurer sessionFixation(Customizer<SessionManagementConfigurer.SessionFixationConfigurer> sessionFixationCustomizer)
What protects a sign-in from a session id planted on the client beforehand; the id is changed unless set otherwise.