Class JdbcTotpCredentialRepository

java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.totp.JdbcTotpCredentialRepository
All Implemented Interfaces:
TotpCredentialRepository

@Repository public class JdbcTotpCredentialRepository extends Object implements TotpCredentialRepository
TotpCredentialRepository over the totp_credentials table.
  • Field Details

    • FIND_BY_USER

      private static final String FIND_BY_USER
      Query returning the credential of a user.
      See Also:
    • UPSERT

      private static final String UPSERT
      Statement inserting a credential, or replacing the one of the same user.
      See Also:
    • CONFIRM

      private static final String CONFIRM
      Statement confirming the credential of a user.
      See Also:
    • ADVANCE_LAST_USED_STEP

      private static final String ADVANCE_LAST_USED_STEP
      Statement that records a step only when it is newer than the stored one, atomically.
      See Also:
    • DELETE_BY_USER

      private static final String DELETE_BY_USER
      Statement deleting the credential of a user.
      See Also:
    • jdbcClient

      private final org.springframework.jdbc.core.simple.JdbcClient jdbcClient
      JDBC client used to run the statements.
    • totpCredentialRowMapper

      private final TotpCredentialRowMapper totpCredentialRowMapper
      Maps a row to a credential.
  • Constructor Details

    • JdbcTotpCredentialRepository

      public JdbcTotpCredentialRepository()
  • Method Details