Class RecoveryCodeRowMapper
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMaps the current row.
-
Constructor Details
-
RecoveryCodeRowMapper
public RecoveryCodeRowMapper()
-
-
Method Details
-
mapRow
Maps the current row.- Specified by:
mapRowin interfaceorg.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
nullwhen the code was never used. - Throws:
SQLException- if a column cannot be read.
-