Search in sources :

Example 1 with CryptographyProperties

use of org.apereo.cas.configuration.model.core.util.CryptographyProperties in project cas by apereo.

the class DynamoDbTicketRegistryConfiguration method ticketRegistry.

@Autowired
@RefreshScope
@Bean
public TicketRegistry ticketRegistry(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) {
    final DynamoDbTicketRegistryProperties db = casProperties.getTicket().getRegistry().getDynamoDb();
    final CryptographyProperties crypto = db.getCrypto();
    return new DynamoDbTicketRegistry(Beans.newTicketRegistryCipherExecutor(crypto), dynamoDbTicketRegistryFacilitator(ticketCatalog));
}
Also used : CryptographyProperties(org.apereo.cas.configuration.model.core.util.CryptographyProperties) DynamoDbTicketRegistryProperties(org.apereo.cas.configuration.model.support.dynamodb.DynamoDbTicketRegistryProperties) DynamoDbTicketRegistry(org.apereo.cas.ticket.registry.DynamoDbTicketRegistry) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Autowired(org.springframework.beans.factory.annotation.Autowired) Bean(org.springframework.context.annotation.Bean)

Aggregations

CryptographyProperties (org.apereo.cas.configuration.model.core.util.CryptographyProperties)1 DynamoDbTicketRegistryProperties (org.apereo.cas.configuration.model.support.dynamodb.DynamoDbTicketRegistryProperties)1 DynamoDbTicketRegistry (org.apereo.cas.ticket.registry.DynamoDbTicketRegistry)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1