Class ExtendableLoginPageAdapter<SELF extends ExtendableLoginPageAdapter<SELF,SHARED_FILTER,LOGIN_FILTER,LOGOUT_FILTER,H>,SHARED_FILTER extends ExtendableDefaultPageGeneratingFilter,LOGIN_FILTER extends ExtendableDefaultLoginPageGeneratingFilter,LOGOUT_FILTER extends ExtendableDefaultLogoutPageGeneratingFilter,H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>
java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,B>
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<SELF,H>
software.xdev.spring.security.web.authentication.ui.extendable.ExtendableLoginPageAdapter<SELF,SHARED_FILTER,LOGIN_FILTER,LOGOUT_FILTER,H>
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,
H>
- Direct Known Subclasses:
AdvancedLoginPageAdapter
public abstract class ExtendableLoginPageAdapter<SELF extends ExtendableLoginPageAdapter<SELF,SHARED_FILTER,LOGIN_FILTER,LOGOUT_FILTER,H>,SHARED_FILTER extends ExtendableDefaultPageGeneratingFilter,LOGIN_FILTER extends ExtendableDefaultLoginPageGeneratingFilter,LOGOUT_FILTER extends ExtendableDefaultLogoutPageGeneratingFilter,H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>
extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<SELF,H>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER extends ExtendableDefaultLoginPageGeneratingFilter,
LOGOUT_FILTER extends ExtendableDefaultLogoutPageGeneratingFilter> static enum
protected static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected Consumer<LOGIN_FILTER>
protected Consumer<LOGOUT_FILTER>
protected final boolean
protected final LOGIN_FILTER
protected final LOGOUT_FILTER
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExtendableLoginPageAdapter
(Supplier<ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER>> s, Consumer<ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER>> c) protected
ExtendableLoginPageAdapter
(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity, Supplier<LOGIN_FILTER> loginPageGeneratingFilterSupplier, Supplier<LOGOUT_FILTER> logoutPageGeneratingFilterSupplier, boolean copyDataFromExistingFilters, ExtendableLoginPageAdapter.InstallWith installWith) protected
ExtendableLoginPageAdapter
(ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER> initConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected static <T> T
crateAndApplyConsumer
(Supplier<T> supplier, Consumer<T> consumer) customizeLoginPage
(Consumer<LOGIN_FILTER> customizeLoginPage) customizeLogoutPage
(Consumer<LOGOUT_FILTER> customizeLogoutPage) customizePages
(Consumer<SHARED_FILTER> customizePages) void
protected void
install
(org.springframework.security.config.annotation.web.configurers.DefaultLoginPageConfigurer loginPageConfigurer) protected SELF
self()
Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer
disable, getSecurityContextHolderStrategy, withObjectPostProcessor, withObjectPostProcessor
Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, addObjectPostProcessor, and, getBuilder, postProcess, setBuilder
-
Field Details
-
loginPageGeneratingFilter
protected final LOGIN_FILTER extends ExtendableDefaultLoginPageGeneratingFilter loginPageGeneratingFilter -
logoutPageGeneratingFilter
protected final LOGOUT_FILTER extends ExtendableDefaultLogoutPageGeneratingFilter logoutPageGeneratingFilter -
copyDataFromExistingFilters
protected final boolean copyDataFromExistingFilters -
installUsingInitMethod
protected final boolean installUsingInitMethod -
customizeLoginPage
protected Consumer<LOGIN_FILTER extends ExtendableDefaultLoginPageGeneratingFilter> customizeLoginPage -
customizeLogoutPage
protected Consumer<LOGOUT_FILTER extends ExtendableDefaultLogoutPageGeneratingFilter> customizeLogoutPage
-
-
Constructor Details
-
ExtendableLoginPageAdapter
protected ExtendableLoginPageAdapter(Supplier<ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER>> s, Consumer<ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER>> c) -
ExtendableLoginPageAdapter
protected ExtendableLoginPageAdapter(ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER> initConfig) -
ExtendableLoginPageAdapter
protected ExtendableLoginPageAdapter(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity, Supplier<LOGIN_FILTER> loginPageGeneratingFilterSupplier, Supplier<LOGOUT_FILTER> logoutPageGeneratingFilterSupplier, boolean copyDataFromExistingFilters, ExtendableLoginPageAdapter.InstallWith installWith)
-
-
Method Details
-
crateAndApplyConsumer
-
init
- Specified by:
init
in interfaceorg.springframework.security.config.annotation.SecurityConfigurer<SELF extends ExtendableLoginPageAdapter<SELF,
SHARED_FILTER, LOGIN_FILTER, LOGOUT_FILTER, H>, SHARED_FILTER extends ExtendableDefaultPageGeneratingFilter> - Overrides:
init
in classorg.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,
H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>
-
install
protected void install(org.springframework.security.config.annotation.web.configurers.DefaultLoginPageConfigurer loginPageConfigurer) -
configure
- Specified by:
configure
in interfaceorg.springframework.security.config.annotation.SecurityConfigurer<SELF extends ExtendableLoginPageAdapter<SELF,
SHARED_FILTER, LOGIN_FILTER, LOGOUT_FILTER, H>, SHARED_FILTER extends ExtendableDefaultPageGeneratingFilter> - Overrides:
configure
in classorg.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,
H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>
-
customizePages
-
customizeLoginPage
-
customizeLogoutPage
-
self
-