use of org.apereo.cas.ticket.registry.MongoDbTicketRegistry in project cas by apereo.
the class MongoDbTicketRegistryConfiguration method ticketRegistry.
@RefreshScope
@Bean
@Autowired
public TicketRegistry ticketRegistry(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) {
final MongoTicketRegistryProperties mongo = casProperties.getTicket().getRegistry().getMongo();
final MongoDbTicketRegistry registry = new MongoDbTicketRegistry(ticketCatalog, mongoDbTicketRegistryTemplate(), mongo.isDropCollection());
registry.setCipherExecutor(CoreTicketUtils.newTicketRegistryCipherExecutor(mongo.getCrypto(), "mongo"));
return registry;
}
Aggregations