public static Map < String , MultifactorAuthenticationProvider > getAvailableMultifactorAuthenticationProviders ( final ApplicationContext applicationContext ) { try { return applicationContext . getBeansOfType ( MultifactorAuthenticationProvider . class , false , true ) ; } catch ( final Exception e ) { LOGGER . trace ( "No beans of type [{}] are available in the application context. " + "CAS may not be configured to handle multifactor authentication requests in absence of a provider" , MultifactorAuthenticationProvider . class ) ; } return new HashMap <> ( 0 ) ; }
Gets all multifactor authentication providers from application context .