Package org.apereo.cas.authentication
Class MultifactorAuthenticationProviderBean<T extends org.apereo.cas.authentication.MultifactorAuthenticationProvider,P extends org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties>
- java.lang.Object
-
- org.apereo.cas.authentication.MultifactorAuthenticationProviderBean<T,P>
-
- Type Parameters:
T- - Type ofMultifactorAuthenticationProviderP- - Type ofBaseMultifactorAuthenticationProviderProperties
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class MultifactorAuthenticationProviderBean<T extends org.apereo.cas.authentication.MultifactorAuthenticationProvider,P extends org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties> extends java.lang.Object implements org.springframework.beans.factory.InitializingBeanGeneric class that applies a list ofBaseMultifactorAuthenticationProviderPropertiesto a providedMultifactorAuthenticationProviderFactoryBeanto create instances ofMultifactorAuthenticationProvider.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description MultifactorAuthenticationProviderBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()TgetProvider(java.lang.String id)Returns the provider assigned to the passed id.voidonRefreshScopeRefreshed(org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent event)Provider instances are not part of theRefreshScopesince they were not defined during initial auto-configuration.
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getProvider
public T getProvider(java.lang.String id)
Returns the provider assigned to the passed id.- Parameters:
id- - the id- Returns:
MultifactorAuthenticationProvider
-
onRefreshScopeRefreshed
@EventListener public void onRefreshScopeRefreshed(org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent event)
Provider instances are not part of theRefreshScopesince they were not defined during initial auto-configuration. This class is usually not consulted after initial configuration. This listener is here so this bean is initialized after a refresh and the provider instances get recreated.- Parameters:
event- - the event.
-
-