use of org.eclipse.hono.deviceregistry.mongodb.service.MongoDbBasedCredentialsManagementService in project hono by eclipse.
the class ManagementServicesProducer method credentialsManagementService.
/**
* Creates a Mongo DB based credentials management service.
*
* @param credentialsDao The DAO for accessing credentials data.
* @param tenantInformationService The service for retrieving tenant information.
* @return The service.
*/
@Produces
@Singleton
public CredentialsManagementService credentialsManagementService(final CredentialsDao credentialsDao, final TenantInformationService tenantInformationService) {
final var service = new MongoDbBasedCredentialsManagementService(vertx, credentialsDao, credentialsServiceProperties, new SpringBasedHonoPasswordEncoder(credentialsServiceProperties.getMaxBcryptCostFactor()));
service.setTenantInformationService(tenantInformationService);
return service;
}
Aggregations