Package io.jans.u2f.service.persist
Class DeviceRegistrationService
- java.lang.Object
-
- io.jans.u2f.service.persist.DeviceRegistrationService
-
@ApplicationScoped public class DeviceRegistrationService extends Object
Provides search operations with user U2F devices- Author:
- Yuriy Movchan Date: 05/27/2020
-
-
Constructor Summary
Constructors Constructor Description DeviceRegistrationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsBranch(String baseDn)
protected io.jans.orm.model.fido2.Fido2RegistrationData
convertToFido2RegistrationData(String documentDomain, String username, DeviceRegistration fidoRegistration)
List<DeviceRegistration>
findAllRegisteredByUsername(String username, String domain, String... returnAttributes)
String
getBaseDnForU2fUserDevices(String userInum)
String
getDnForU2fDevice(String userInum, String jsId)
Build DN string for U2F user devicevoid
migrateToFido2(List<DeviceRegistration> fidoRegistrations, String documentDomain, String username)
-
-
-
Method Detail
-
containsBranch
public boolean containsBranch(String baseDn)
-
findAllRegisteredByUsername
public List<DeviceRegistration> findAllRegisteredByUsername(String username, String domain, String... returnAttributes)
-
migrateToFido2
public void migrateToFido2(List<DeviceRegistration> fidoRegistrations, String documentDomain, String username)
-
convertToFido2RegistrationData
protected io.jans.orm.model.fido2.Fido2RegistrationData convertToFido2RegistrationData(String documentDomain, String username, DeviceRegistration fidoRegistration) throws IOException
- Throws:
IOException
-
getDnForU2fDevice
public String getDnForU2fDevice(String userInum, String jsId)
Build DN string for U2F user device
-
-