Search in sources :

Example 1 with RedisTicketRegistry

use of org.apereo.cas.ticket.registry.RedisTicketRegistry in project cas by apereo.

the class RedisTicketRegistryConfiguration method ticketRegistry.

@Bean
@RefreshScope
public TicketRegistry ticketRegistry() {
    final RedisTicketRegistryProperties redis = casProperties.getTicket().getRegistry().getRedis();
    final RedisTicketRegistry r = new RedisTicketRegistry(ticketRedisTemplate());
    r.setCipherExecutor(Beans.newTicketRegistryCipherExecutor(redis.getCrypto()));
    return r;
}
Also used : RedisTicketRegistry(org.apereo.cas.ticket.registry.RedisTicketRegistry) RedisTicketRegistryProperties(org.apereo.cas.configuration.model.support.redis.RedisTicketRegistryProperties) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Bean(org.springframework.context.annotation.Bean)

Aggregations

RedisTicketRegistryProperties (org.apereo.cas.configuration.model.support.redis.RedisTicketRegistryProperties)1 RedisTicketRegistry (org.apereo.cas.ticket.registry.RedisTicketRegistry)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1