use of org.apereo.cas.configuration.model.support.memcached.MemcachedTicketRegistryProperties in project cas by apereo.
the class MemcachedTicketRegistryConfiguration method ticketRegistry.
@Bean
public TicketRegistry ticketRegistry() {
final MemcachedTicketRegistryProperties memcached = casProperties.getTicket().getRegistry().getMemcached();
final MemcachedPooledClientConnectionFactory factory = new MemcachedPooledClientConnectionFactory(memcached, memcachedTicketRegistryTranscoder());
final MemcachedTicketRegistry registry = new MemcachedTicketRegistry(factory.getObjectPool());
final CipherExecutor cipherExecutor = CoreTicketUtils.newTicketRegistryCipherExecutor(memcached.getCrypto(), "memcached");
registry.setCipherExecutor(cipherExecutor);
return registry;
}
Aggregations