Class RedisYubiKeyConfiguration


  • @EnableConfigurationProperties(org.apereo.cas.configuration.CasConfigurationProperties.class)
    @ConditionalOnFeatureEnabled(feature=YubiKey,
                                 module="redis")
    @AutoConfiguration
    public class RedisYubiKeyConfiguration
    extends java.lang.Object
    Since:
    6.2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.data.redis.connection.RedisConnectionFactory redisYubiKeyConnectionFactory​(org.springframework.context.ConfigurableApplicationContext applicationContext, org.apereo.cas.authentication.CasSSLContext casSslContext, org.apereo.cas.configuration.CasConfigurationProperties casProperties)  
      org.apereo.cas.redis.core.CasRedisTemplate redisYubiKeyTemplate​(org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.data.redis.connection.RedisConnectionFactory redisYubiKeyConnectionFactory)  
      org.apereo.cas.adaptors.yubikey.YubiKeyAccountRegistry yubiKeyAccountRegistry​(org.springframework.context.ConfigurableApplicationContext applicationContext, org.apereo.cas.redis.core.CasRedisTemplate redisYubiKeyTemplate, org.apereo.cas.adaptors.yubikey.YubiKeyAccountValidator yubiKeyAccountValidator, org.apereo.cas.util.crypto.CipherExecutor yubikeyAccountCipherExecutor, org.apereo.cas.configuration.CasConfigurationProperties casProperties)  
      • Methods inherited from class java.lang.Object

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

      • RedisYubiKeyConfiguration

        public RedisYubiKeyConfiguration()
    • Method Detail

      • redisYubiKeyTemplate

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

        @Bean
        @ConditionalOnMissingBean(name="redisYubiKeyConnectionFactory")
        @RefreshScope(proxyMode=DEFAULT)
        public org.springframework.data.redis.connection.RedisConnectionFactory redisYubiKeyConnectionFactory​(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
      • yubiKeyAccountRegistry

        @RefreshScope(proxyMode=DEFAULT)
        @Bean
        public org.apereo.cas.adaptors.yubikey.YubiKeyAccountRegistry yubiKeyAccountRegistry​(org.springframework.context.ConfigurableApplicationContext applicationContext,
                                                                                             @Qualifier("redisYubiKeyTemplate")
                                                                                             org.apereo.cas.redis.core.CasRedisTemplate redisYubiKeyTemplate,
                                                                                             @Qualifier("yubiKeyAccountValidator")
                                                                                             org.apereo.cas.adaptors.yubikey.YubiKeyAccountValidator yubiKeyAccountValidator,
                                                                                             @Qualifier("yubikeyAccountCipherExecutor")
                                                                                             org.apereo.cas.util.crypto.CipherExecutor yubikeyAccountCipherExecutor,
                                                                                             org.apereo.cas.configuration.CasConfigurationProperties casProperties)
                                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception