Class SecurityConfigurer
java.lang.Object
com.codename1.backend.security.SecurityConfigurer
- Direct Known Subclasses:
AnonymousConfigurer, 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(C, Customizer).
When the chain is built every configurer's init(HttpSecurity) runs, then every one's
configure(HttpSecurity): 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(HttpSecurity http) Adds this part's filters; nothing by default.disable()Takes this part out of the chain:http.csrf(csrf -> csrf.disable()).protected final HttpSecurityTheHttpSecuritythis configurer was applied to.voidinit(HttpSecurity http) Shares what other parts need to know; nothing by default.
-
Constructor Details
-
SecurityConfigurer
public SecurityConfigurer()
-
-
Method Details
-
getBuilder
TheHttpSecuritythis configurer was applied to. -
init
Shares what other parts need to know; nothing by default. -
configure
Adds this part's filters; nothing by default. -
disable
Takes this part out of the chain:http.csrf(csrf -> csrf.disable()).
-