use of org.apereo.cas.couchbase.core.CouchbaseClientFactory in project cas by apereo.
the class CouchbaseServiceRegistryConfiguration method serviceRegistryCouchbaseClientFactory.
/**
* Service registry couchbase client factory couchbase client factory.
*
* @return the couchbase client factory
*/
@RefreshScope
@Bean
public CouchbaseClientFactory serviceRegistryCouchbaseClientFactory() {
final CouchbaseServiceRegistryProperties couchbase = casProperties.getServiceRegistry().getCouchbase();
final Set<String> nodes = StringUtils.commaDelimitedListToSet(couchbase.getNodeSet());
return new CouchbaseClientFactory(nodes, couchbase.getBucket(), couchbase.getPassword(), Beans.newDuration(couchbase.getTimeout()).toMillis(), CouchbaseServiceRegistry.UTIL_DOCUMENT, CouchbaseServiceRegistry.ALL_VIEWS);
}
use of org.apereo.cas.couchbase.core.CouchbaseClientFactory in project cas by apereo.
the class CouchbaseTicketRegistryConfiguration method ticketRegistryCouchbaseClientFactory.
@RefreshScope
@Bean
public CouchbaseClientFactory ticketRegistryCouchbaseClientFactory() {
final CouchbaseTicketRegistryProperties cb = casProperties.getTicket().getRegistry().getCouchbase();
final Set<String> nodes = StringUtils.commaDelimitedListToSet(cb.getNodeSet());
return new CouchbaseClientFactory(nodes, cb.getBucket(), cb.getPassword(), Beans.newDuration(cb.getTimeout()).toMillis(), CouchbaseTicketRegistry.UTIL_DOCUMENT, CouchbaseTicketRegistry.ALL_VIEWS);
}
use of org.apereo.cas.couchbase.core.CouchbaseClientFactory in project cas by apereo.
the class CouchbaseAuthenticationConfiguration method authenticationCouchbaseClientFactory.
@ConditionalOnMissingBean(name = "authenticationCouchbaseClientFactory")
@RefreshScope
@Bean
public CouchbaseClientFactory authenticationCouchbaseClientFactory() {
final CouchbaseAuthenticationProperties couchbase = casProperties.getAuthn().getCouchbase();
final Set<String> nodes = org.springframework.util.StringUtils.commaDelimitedListToSet(couchbase.getNodeSet());
return new CouchbaseClientFactory(nodes, couchbase.getBucket(), couchbase.getPassword());
}
Aggregations