use of org.apereo.cas.ticket.UniqueTicketIdGeneratorConfigurer in project cas by apereo.
the class CasCoreTicketIdGeneratorsConfiguration method uniqueIdGeneratorsMap.
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public Map<String, UniqueTicketIdGenerator> uniqueIdGeneratorsMap(final ObjectProvider<List<UniqueTicketIdGeneratorConfigurer>> configurers) {
val map = new HashMap<String, UniqueTicketIdGenerator>();
configurers.ifAvailable(cfgs -> cfgs.forEach(c -> {
val pair = c.buildUniqueTicketIdGenerators();
pair.forEach(p -> map.put(p.getKey(), p.getValue()));
}));
return map;
}
Aggregations