use of org.apereo.cas.ticket.registry.JpaTicketRegistry in project cas by apereo.
the class JpaTicketRegistryConfiguration method ticketRegistry.
@Bean
@RefreshScope
public TicketRegistry ticketRegistry(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) {
final JpaTicketRegistryProperties jpa = casProperties.getTicket().getRegistry().getJpa();
final JpaTicketRegistry bean = new JpaTicketRegistry(jpa.getTicketLockType(), ticketCatalog);
bean.setCipherExecutor(CoreTicketUtils.newTicketRegistryCipherExecutor(jpa.getCrypto(), "jpa"));
return bean;
}
Aggregations