Search in sources :

Example 1 with IgniteTicketRegistry

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

the class IgniteTicketRegistryConfiguration method ticketRegistry.

@Bean
@RefreshScope
public TicketRegistry ticketRegistry() {
    final IgniteProperties igniteProperties = casProperties.getTicket().getRegistry().getIgnite();
    final IgniteTicketRegistry r = new IgniteTicketRegistry(igniteConfiguration(), igniteProperties);
    r.setCipherExecutor(Beans.newTicketRegistryCipherExecutor(igniteProperties.getCrypto()));
    return r;
}
Also used : IgniteTicketRegistry(org.apereo.cas.ticket.registry.IgniteTicketRegistry) IgniteProperties(org.apereo.cas.configuration.model.support.ignite.IgniteProperties) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Bean(org.springframework.context.annotation.Bean)

Example 2 with IgniteTicketRegistry

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

the class IgniteTicketRegistryConfiguration method ticketRegistry.

@Bean
@RefreshScope
public TicketRegistry ticketRegistry(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) {
    final IgniteProperties igniteProperties = casProperties.getTicket().getRegistry().getIgnite();
    final IgniteTicketRegistry r = new IgniteTicketRegistry(ticketCatalog, igniteConfiguration(ticketCatalog), igniteProperties);
    r.setCipherExecutor(CoreTicketUtils.newTicketRegistryCipherExecutor(igniteProperties.getCrypto(), "ignite"));
    return r;
}
Also used : IgniteTicketRegistry(org.apereo.cas.ticket.registry.IgniteTicketRegistry) IgniteProperties(org.apereo.cas.configuration.model.support.ignite.IgniteProperties) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Bean(org.springframework.context.annotation.Bean)

Aggregations

IgniteProperties (org.apereo.cas.configuration.model.support.ignite.IgniteProperties)2 IgniteTicketRegistry (org.apereo.cas.ticket.registry.IgniteTicketRegistry)2 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)2 Bean (org.springframework.context.annotation.Bean)2