java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.social.FederatedIdentityRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<FederatedIdentity>

@Component public class FederatedIdentityRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<FederatedIdentity>
Maps a row of federated_identities to a FederatedIdentity.
  • Constructor Details

    • FederatedIdentityRowMapper

      public FederatedIdentityRowMapper()
  • Method Details

    • mapRow

      public FederatedIdentity mapRow(ResultSet rs, int rowNum) throws SQLException
      Maps the current row.
      Specified by:
      mapRow in interface org.springframework.jdbc.core.RowMapper<FederatedIdentity>
      Parameters:
      rs - result set positioned on the row.
      rowNum - number of the row.
      Returns:
      the identity; its e-mail address and last sign-in are null when none was stored.
      Throws:
      SQLException - if a column cannot be read.
      IllegalArgumentException - if the stored provider is not a known one.