Search in sources :

Example 1 with CredentialsManagementServiceImpl

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;
}
Also used : SpringBasedHonoPasswordEncoder(org.eclipse.hono.auth.SpringBasedHonoPasswordEncoder) CredentialsManagementServiceImpl(org.eclipse.hono.deviceregistry.jdbc.impl.CredentialsManagementServiceImpl) Produces(javax.enterprise.inject.Produces) Singleton(javax.inject.Singleton)

Aggregations

Produces (javax.enterprise.inject.Produces)1 Singleton (javax.inject.Singleton)1 SpringBasedHonoPasswordEncoder (org.eclipse.hono.auth.SpringBasedHonoPasswordEncoder)1 CredentialsManagementServiceImpl (org.eclipse.hono.deviceregistry.jdbc.impl.CredentialsManagementServiceImpl)1