Class MultifactorAuthenticationProviderBean<T extends org.apereo.cas.authentication.MultifactorAuthenticationProvider,​P extends org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties>

  • Type Parameters:
    T - - Type of MultifactorAuthenticationProvider
    P - - Type of BaseMultifactorAuthenticationProviderProperties
    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.InitializingBean
    Generic class that applies a list of BaseMultifactorAuthenticationProviderProperties to a provided MultifactorAuthenticationProviderFactoryBean to create instances of MultifactorAuthenticationProvider.
    Since:
    6.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      T getProvider​(java.lang.String id)
      Returns the provider assigned to the passed id.
      void onRefreshScopeRefreshed​(org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent event)
      Provider instances are not part of the RefreshScope since they were not defined during initial auto-configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultifactorAuthenticationProviderBean

        public MultifactorAuthenticationProviderBean()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.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 the RefreshScope since 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.