java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.mfa.TrustedDeviceRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<TrustedDevice>

@Component public class TrustedDeviceRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<TrustedDevice>
Maps a row of trusted_devices to a TrustedDevice.
  • Constructor Details

    • TrustedDeviceRowMapper

      public TrustedDeviceRowMapper()
  • Method Details

    • mapRow

      public TrustedDevice mapRow(ResultSet rs, int rowNum) throws SQLException
      Maps the current row.
      Specified by:
      mapRow in interface org.springframework.jdbc.core.RowMapper<TrustedDevice>
      Parameters:
      rs - result set positioned on the row.
      rowNum - number of the row.
      Returns:
      the device; its user agent summary is null when none was stored.
      Throws:
      SQLException - if a column cannot be read.