use of org.apereo.cas.configuration.model.support.jpa.ticketregistry.JpaTicketRegistryProperties 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(Beans.newTicketRegistryCipherExecutor(jpa.getCrypto()));
return bean;
}
Aggregations