Search in sources :

Example 1 with HazelcastTicketRegistry

use of org.apereo.cas.ticket.registry.HazelcastTicketRegistry in project cas by apereo.

the class HazelcastTicketRegistryConfiguration method ticketRegistry.

@Autowired
@Bean
public TicketRegistry ticketRegistry(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) {
    final HazelcastTicketRegistryProperties hz = casProperties.getTicket().getRegistry().getHazelcast();
    final HazelcastTicketRegistry r = new HazelcastTicketRegistry(hazelcast(ticketCatalog), ticketCatalog, hz.getPageSize());
    r.setCipherExecutor(CoreTicketUtils.newTicketRegistryCipherExecutor(hz.getCrypto(), "hazelcast"));
    return r;
}
Also used : HazelcastTicketRegistry(org.apereo.cas.ticket.registry.HazelcastTicketRegistry) HazelcastTicketRegistryProperties(org.apereo.cas.configuration.model.support.hazelcast.HazelcastTicketRegistryProperties) Autowired(org.springframework.beans.factory.annotation.Autowired) Bean(org.springframework.context.annotation.Bean)

Aggregations

HazelcastTicketRegistryProperties (org.apereo.cas.configuration.model.support.hazelcast.HazelcastTicketRegistryProperties)1 HazelcastTicketRegistry (org.apereo.cas.ticket.registry.HazelcastTicketRegistry)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 Bean (org.springframework.context.annotation.Bean)1