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

public abstract class SecurityConfigurer

  1. Object
  2. SecurityConfigurer

Known subtypesAnonymousConfigurer, ApiKeyConfigurer, AuthorizationServerConfigurer, AuthorizeHttpRequestsConfigurer, CsrfConfigurer, ExceptionHandlingConfigurer, FormLoginConfigurer, HeadersConfigurer, HttpBasicConfigurer, LogoutConfigurer, MfaConfigurer, OAuth2LoginConfigurer, OAuth2ResourceServerConfigurer, RateLimitConfigurer, RememberMeConfigurer, RequestCacheConfigurer, SecurityContextConfigurer, SessionManagementConfigurer, WebAuthnConfigurer

One configurable part of an HttpSecurity: form login, CSRF protection, the authorization rules. The built-in parts are these, and so is anything an application or a library adds with HttpSecurity.with.

When the chain is built every configurer’s init runs, then every one’s configure: init is where a part tells the others about itself – an entry point, a path that must stay open – and configure is where it adds its filters.

Constructors

public SecurityConfigurer()

Methods

protected final HttpSecurity getBuilder()The HttpSecurity this configurer was applied to.
public void init(HttpSecurity http)Shares what other parts need to know; nothing by default.
public void configure(HttpSecurity http)Adds this part’s filters; nothing by default.
public HttpSecurity disable()Takes this part out of the chain: http.csrf(csrf -> csrf.disable()).

Inherited methods

Constructor details

SecurityConfigurer

public SecurityConfigurer()

Method details

getBuilder

protected final HttpSecurity getBuilder()
The HttpSecurity this configurer was applied to.

init

public void init(HttpSecurity http)
Shares what other parts need to know; nothing by default.

configure

public void configure(HttpSecurity http)
Adds this part’s filters; nothing by default.

disable

public HttpSecurity disable()
Takes this part out of the chain: http.csrf(csrf -> csrf.disable()).