Interface UserMFAAuthRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<MFAAuthEntity,Long>, org.springframework.data.jpa.repository.JpaRepository<MFAAuthEntity,Long>, org.springframework.data.repository.ListCrudRepository<MFAAuthEntity,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<MFAAuthEntity,Long>, org.springframework.data.repository.PagingAndSortingRepository<MFAAuthEntity,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<MFAAuthEntity>, org.springframework.data.querydsl.QuerydslPredicateExecutor<MFAAuthEntity>, org.springframework.data.repository.Repository<MFAAuthEntity,Long>

@Repository public interface UserMFAAuthRepository extends org.springframework.data.jpa.repository.JpaRepository<MFAAuthEntity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<MFAAuthEntity>
This is MFAAuthRepository interface. Interface for generic CRUD operations of the MFA Auth entity. This handles the below operations.
  • Create
  • Read
  • Delete
Author:
Infosys Equinox
  • Method Summary

    Modifier and Type
    Method
    Description
    findByUserId(long userId)
    This is used to load the user MFA authenticator secret code by userId

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne

    Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor

    count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
  • Method Details

    • findByUserId

      Optional<MFAAuthEntity> findByUserId(long userId)
      This is used to load the user MFA authenticator secret code by userId
      Parameters:
      userId - Indicates the user id for which MFA code are loaded.
      Returns:
      The MFAAuthEntity object.