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

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

    • TotpCredentialRowMapper

      public TotpCredentialRowMapper()
  • Method Details

    • mapRow

      public TotpCredential mapRow(ResultSet rs, int rowNum) throws SQLException
      Maps the current row.
      Specified by:
      mapRow in interface org.springframework.jdbc.core.RowMapper<TotpCredential>
      Parameters:
      rs - result set positioned on the row.
      rowNum - number of the row.
      Returns:
      the credential.
      Throws:
      SQLException - if a column cannot be read.