use of org.eclipse.hono.deviceregistry.jdbc.impl.CredentialsManagementServiceImpl in project hono by eclipse.
the class ManagementServicesProducer method credentialsManagementService.
/**
* Creates a JDBC based credentials management service.
*
* @param devicesManagementStore The data store for accessing credentials data.
* @param deviceServiceOptions The device management service configuration.
* @param tenantInformationService The service for retrieving tenant information.
* @return The service.
*/
@Produces
@Singleton
public CredentialsManagementService credentialsManagementService(final TableManagementStore devicesManagementStore, final DeviceServiceOptions deviceServiceOptions, final TenantInformationService tenantInformationService) {
final var service = new CredentialsManagementServiceImpl(vertx, new SpringBasedHonoPasswordEncoder(deviceServiceOptions.maxBcryptCostFactor()), devicesManagementStore, deviceServiceOptions);
service.setTenantInformationService(tenantInformationService);
return service;
}
Aggregations