Class GoogleAuthenticatorRedisConfiguration


  • @EnableConfigurationProperties(org.apereo.cas.configuration.CasConfigurationProperties.class)
    @EnableTransactionManagement(proxyTargetClass=false)
    @EnableScheduling
    @ConditionalOnFeatureEnabled(feature=GoogleAuthenticator,
                                 module="redis")
    @AutoConfiguration
    public class GoogleAuthenticatorRedisConfiguration
    extends java.lang.Object
    Since:
    6.1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apereo.cas.otp.repository.credentials.OneTimeTokenCredentialRepository googleAuthenticatorAccountRegistry​(org.springframework.context.ConfigurableApplicationContext applicationContext, com.warrenstrange.googleauth.IGoogleAuthenticator googleAuthenticatorInstance, org.apereo.cas.util.crypto.CipherExecutor googleAuthenticatorAccountCipherExecutor, org.apereo.cas.util.crypto.CipherExecutor googleAuthenticatorScratchCodesCipherExecutor, org.apereo.cas.redis.core.CasRedisTemplate redisGoogleAuthenticatorTemplate, org.apereo.cas.configuration.CasConfigurationProperties casProperties)  
      org.apereo.cas.otp.repository.token.OneTimeTokenRepository oneTimeTokenAuthenticatorTokenRepository​(org.springframework.context.ConfigurableApplicationContext applicationContext, org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.apereo.cas.redis.core.CasRedisTemplate redisGoogleAuthenticatorTemplate)  
      org.springframework.beans.factory.config.BeanPostProcessor persistenceExceptionTranslationPostProcessor()  
      org.springframework.data.redis.connection.RedisConnectionFactory redisGoogleAuthenticatorConnectionFactory​(org.springframework.context.ConfigurableApplicationContext applicationContext, org.apereo.cas.authentication.CasSSLContext casSslContext, org.apereo.cas.configuration.CasConfigurationProperties casProperties)  
      org.apereo.cas.redis.core.CasRedisTemplate redisGoogleAuthenticatorTemplate​(org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.data.redis.connection.RedisConnectionFactory redisGoogleAuthenticatorConnectionFactory)  
      • Methods inherited from class java.lang.Object

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

      • GoogleAuthenticatorRedisConfiguration

        public GoogleAuthenticatorRedisConfiguration()
    • Method Detail

      • persistenceExceptionTranslationPostProcessor

        @RefreshScope(proxyMode=DEFAULT)
        @Bean
        public org.springframework.beans.factory.config.BeanPostProcessor persistenceExceptionTranslationPostProcessor()
      • redisGoogleAuthenticatorConnectionFactory

        @Bean
        @ConditionalOnMissingBean(name="redisGoogleAuthenticatorConnectionFactory")
        @RefreshScope(proxyMode=DEFAULT)
        public org.springframework.data.redis.connection.RedisConnectionFactory redisGoogleAuthenticatorConnectionFactory​(org.springframework.context.ConfigurableApplicationContext applicationContext,
                                                                                                                          @Qualifier("casSslContext")
                                                                                                                          org.apereo.cas.authentication.CasSSLContext casSslContext,
                                                                                                                          org.apereo.cas.configuration.CasConfigurationProperties casProperties)
                                                                                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • redisGoogleAuthenticatorTemplate

        @RefreshScope(proxyMode=DEFAULT)
        @Bean
        @ConditionalOnMissingBean(name="redisGoogleAuthenticatorTemplate")
        public org.apereo.cas.redis.core.CasRedisTemplate redisGoogleAuthenticatorTemplate​(org.springframework.context.ConfigurableApplicationContext applicationContext,
                                                                                           @Qualifier("redisGoogleAuthenticatorConnectionFactory")
                                                                                           org.springframework.data.redis.connection.RedisConnectionFactory redisGoogleAuthenticatorConnectionFactory)
                                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • googleAuthenticatorAccountRegistry

        @Bean
        @RefreshScope(proxyMode=DEFAULT)
        public org.apereo.cas.otp.repository.credentials.OneTimeTokenCredentialRepository googleAuthenticatorAccountRegistry​(org.springframework.context.ConfigurableApplicationContext applicationContext,
                                                                                                                             @Qualifier("googleAuthenticatorInstance")
                                                                                                                             com.warrenstrange.googleauth.IGoogleAuthenticator googleAuthenticatorInstance,
                                                                                                                             @Qualifier("googleAuthenticatorAccountCipherExecutor")
                                                                                                                             org.apereo.cas.util.crypto.CipherExecutor googleAuthenticatorAccountCipherExecutor,
                                                                                                                             @Qualifier("googleAuthenticatorScratchCodesCipherExecutor")
                                                                                                                             org.apereo.cas.util.crypto.CipherExecutor googleAuthenticatorScratchCodesCipherExecutor,
                                                                                                                             @Qualifier("redisGoogleAuthenticatorTemplate")
                                                                                                                             org.apereo.cas.redis.core.CasRedisTemplate redisGoogleAuthenticatorTemplate,
                                                                                                                             org.apereo.cas.configuration.CasConfigurationProperties casProperties)
                                                                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • oneTimeTokenAuthenticatorTokenRepository

        @Bean
        @RefreshScope(proxyMode=DEFAULT)
        public org.apereo.cas.otp.repository.token.OneTimeTokenRepository oneTimeTokenAuthenticatorTokenRepository​(org.springframework.context.ConfigurableApplicationContext applicationContext,
                                                                                                                   org.apereo.cas.configuration.CasConfigurationProperties casProperties,
                                                                                                                   @Qualifier("redisGoogleAuthenticatorTemplate")
                                                                                                                   org.apereo.cas.redis.core.CasRedisTemplate redisGoogleAuthenticatorTemplate)
                                                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception