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 classExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER extends ExtendableDefaultLoginPageGeneratingFilter,LOGOUT_FILTER extends ExtendableDefaultLogoutPageGeneratingFilter> static enumprotected static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected Consumer<LOGIN_FILTER>protected Consumer<LOGOUT_FILTER>protected final booleanprotected final LOGIN_FILTERprotected final LOGOUT_FILTER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExtendableLoginPageAdapter(Supplier<ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER>> s, Consumer<ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER>> c) protectedExtendableLoginPageAdapter(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity, Supplier<LOGIN_FILTER> loginPageGeneratingFilterSupplier, Supplier<LOGOUT_FILTER> logoutPageGeneratingFilterSupplier, boolean copyDataFromExistingFilters, ExtendableLoginPageAdapter.InstallWith installWith) protectedExtendableLoginPageAdapter(ExtendableLoginPageAdapter.InitConfiguration<LOGIN_FILTER, LOGOUT_FILTER> initConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected static <T> TcrateAndApplyConsumer(Supplier<T> supplier, Consumer<T> consumer) customizeLoginPage(Consumer<LOGIN_FILTER> customizeLoginPage) customizeLogoutPage(Consumer<LOGOUT_FILTER> customizeLogoutPage) customizePages(Consumer<SHARED_FILTER> customizePages) voidprotected voidinstall(org.springframework.security.config.annotation.web.configurers.DefaultLoginPageConfigurer loginPageConfigurer) protected SELFself()Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer
disable, getSecurityContextHolderStrategy, withObjectPostProcessor, withObjectPostProcessorMethods 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:
initin interfaceorg.springframework.security.config.annotation.SecurityConfigurer<SELF extends ExtendableLoginPageAdapter<SELF,SHARED_FILTER, LOGIN_FILTER, LOGOUT_FILTER, H>, SHARED_FILTER extends ExtendableDefaultPageGeneratingFilter> - Overrides:
initin 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:
configurein interfaceorg.springframework.security.config.annotation.SecurityConfigurer<SELF extends ExtendableLoginPageAdapter<SELF,SHARED_FILTER, LOGIN_FILTER, LOGOUT_FILTER, H>, SHARED_FILTER extends ExtendableDefaultPageGeneratingFilter> - Overrides:
configurein 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
-