Package io.jans.fido2.service.persist
Class RegistrationPersistenceService
- java.lang.Object
-
- io.jans.as.common.service.common.fido2.RegistrationPersistenceService
-
- io.jans.fido2.service.persist.RegistrationPersistenceService
-
@ApplicationScoped public class RegistrationPersistenceService extends io.jans.as.common.service.common.fido2.RegistrationPersistenceService
Every registration is persisted under Person Entry- Version:
- May 08, 2020
- Author:
- Yuriy Movchan
-
-
Constructor Summary
Constructors Constructor Description RegistrationPersistenceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jans.orm.model.fido2.Fido2RegistrationEntry
buildFido2RegistrationEntry(io.jans.orm.model.fido2.Fido2RegistrationData registrationData, boolean oneStep)
List<io.jans.orm.model.fido2.Fido2RegistrationEntry>
findAllByUsername(String username)
List<io.jans.orm.model.fido2.Fido2RegistrationEntry>
findAllRegisteredByUsername(String username)
List<io.jans.orm.model.fido2.Fido2RegistrationEntry>
findByChallenge(String challenge, boolean oneStep)
Optional<io.jans.orm.model.fido2.Fido2RegistrationEntry>
findByPublicKeyId(String publicKeyId, String rpId)
Optional<io.jans.orm.model.fido2.Fido2RegistrationEntry>
findByPublicKeyId(String userName, String publicKeyId, String rpId)
String
getBasedPeopleDn()
int
getChallengeHashCode(String challenge)
String
getDnForRegistrationEntry(String userInum, String jsId)
int
getPublicKeyIdHash(String publicKeyId)
String
getUserInum(String userName)
void
save(io.jans.orm.model.fido2.Fido2RegistrationData registrationData)
-
Methods inherited from class io.jans.as.common.service.common.fido2.RegistrationPersistenceService
addBranch, attachDeviceRegistrationToUser, attachDeviceRegistrationToUser, containsBranch, findByRpRegisteredUserDevices, findOneStepUserDeviceRegistration, findRegisteredUserDevice, getBaseDnForFido2RegistrationEntries, getDnForUser, prepareBranch, save, update
-
-
-
-
Method Detail
-
save
public void save(io.jans.orm.model.fido2.Fido2RegistrationData registrationData)
-
buildFido2RegistrationEntry
public io.jans.orm.model.fido2.Fido2RegistrationEntry buildFido2RegistrationEntry(io.jans.orm.model.fido2.Fido2RegistrationData registrationData, boolean oneStep)
-
findByPublicKeyId
public Optional<io.jans.orm.model.fido2.Fido2RegistrationEntry> findByPublicKeyId(String userName, String publicKeyId, String rpId)
-
findByPublicKeyId
public Optional<io.jans.orm.model.fido2.Fido2RegistrationEntry> findByPublicKeyId(String publicKeyId, String rpId)
-
findAllByUsername
public List<io.jans.orm.model.fido2.Fido2RegistrationEntry> findAllByUsername(String username)
-
findAllRegisteredByUsername
public List<io.jans.orm.model.fido2.Fido2RegistrationEntry> findAllRegisteredByUsername(String username)
-
findByChallenge
public List<io.jans.orm.model.fido2.Fido2RegistrationEntry> findByChallenge(String challenge, boolean oneStep)
-
getBasedPeopleDn
public String getBasedPeopleDn()
- Overrides:
getBasedPeopleDn
in classio.jans.as.common.service.common.fido2.RegistrationPersistenceService
-
getChallengeHashCode
public int getChallengeHashCode(String challenge)
-
getPublicKeyIdHash
public int getPublicKeyIdHash(String publicKeyId)
-
getDnForRegistrationEntry
public String getDnForRegistrationEntry(String userInum, String jsId)
- Overrides:
getDnForRegistrationEntry
in classio.jans.as.common.service.common.fido2.RegistrationPersistenceService
-
-