java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.totp.RecoveryCodeRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<RecoveryCode>

@Component public class RecoveryCodeRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<RecoveryCode>
Maps a row of the recovery_codes table to a RecoveryCode.
  • Constructor Details

    • RecoveryCodeRowMapper

      public RecoveryCodeRowMapper()
  • Method Details

    • mapRow

      public RecoveryCode mapRow(ResultSet rs, int rowNum) throws SQLException
      Maps the current row.
      Specified by:
      mapRow in interface org.springframework.jdbc.core.RowMapper<RecoveryCode>
      Parameters:
      rs - result set positioned on the row.
      rowNum - number of the row.
      Returns:
      the code; its used-at instant is null when the code was never used.
      Throws:
      SQLException - if a column cannot be read.