Class 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 Detail

      • RegistrationPersistenceService

        public RegistrationPersistenceService()
    • 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 class io.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 class io.jans.as.common.service.common.fido2.RegistrationPersistenceService
      • getUserInum

        public String getUserInum​(String userName)
        Specified by:
        getUserInum in class io.jans.as.common.service.common.fido2.RegistrationPersistenceService