use of org.apereo.cas.ticket.registry.CouchbaseTicketRegistry in project cas by apereo.
the class CouchbaseTicketRegistryConfiguration method ticketRegistry.
@RefreshScope
@Bean
public TicketRegistry ticketRegistry() {
final CouchbaseTicketRegistryProperties couchbase = casProperties.getTicket().getRegistry().getCouchbase();
final CouchbaseTicketRegistry c = new CouchbaseTicketRegistry(ticketRegistryCouchbaseClientFactory(), couchbase.isQueryEnabled());
c.setCipherExecutor(Beans.newTicketRegistryCipherExecutor(couchbase.getCrypto()));
return c;
}
use of org.apereo.cas.ticket.registry.CouchbaseTicketRegistry in project cas by apereo.
the class CouchbaseTicketRegistryConfiguration method ticketRegistry.
@Autowired
@RefreshScope
@Bean
public TicketRegistry ticketRegistry(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) {
final CouchbaseTicketRegistryProperties couchbase = casProperties.getTicket().getRegistry().getCouchbase();
final CouchbaseTicketRegistry c = new CouchbaseTicketRegistry(ticketCatalog, ticketRegistryCouchbaseClientFactory());
c.setCipherExecutor(CoreTicketUtils.newTicketRegistryCipherExecutor(couchbase.getCrypto(), "couchbase"));
return c;
}
Aggregations