public class PasswordHistoryController extends JDBCObjectController<PasswordHistory>
PasswordHistory class. Provides methods for
retrieving and persisting user password history table records in the database.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
ivDBObjCls, ivFieldCount, ivFieldKeyAlt, ivFieldKeyPri, ivFieldResPfx, ivSyncLast, ivSyncType, ivTableNameivHashCode, ivHashFlds, ivObjAttrs| Constructor and Description |
|---|
PasswordHistoryController()
The constructor for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
int |
add(PasswordHistory obj,
boolean logdup)
Adds a new record to the table associated with the controller.
|
boolean |
add(java.lang.String userId,
java.lang.String password)
Adds a new password history record to the database table.
|
java.util.ArrayList<PasswordHistory> |
getUser(java.lang.String userId)
Returns a collection of password history records for the given user id.
|
boolean |
isReused(java.lang.String userId,
java.lang.String password)
Answers if a password exists in history based on the configured value for
password resuse count (User.Password.ReuseCount).
|
add, add, arrayToMap, arrayToMap, countAll, delete, delete, deleteAll, dispose, equals, getAll, getConnection, getConnectionInfo, getController, getFieldNames, getFieldNamesForKey, getFieldNamesForUpdate, getFieldNulls, getFieldNullsForKey, getFieldNullsForUpdate, getFieldsForOrderBy, getFieldsForWhere, getFieldSize, getFieldTypes, getFieldTypesForKey, getFieldTypesForUpdate, getStatementForDelete, getStatementForGet, getStatementForGetAll, getStatementForInsert, getStatementForUpdate, getStatementKey, getStatementString, getTableName, hasFieldNamesForKey, hasFieldNamesForUpdate, isDuplicate, resultSetToArray, resultSetToMap, resultSetToMap, resultSetToObject, setConnectionInfo, setPSDeleteValues, setPSExistsValues, setPSInsertValues, setPSUpdateValues, setPSValue, update, update, valuesToObjectcloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayprivate static final long serialVersionUID
public PasswordHistoryController()
public int add(PasswordHistory obj, boolean logdup)
add in JDBCObjectController.add in class JDBCObjectController<PasswordHistory>obj - (JDBCObject) The object for the record to be added.logdup - (boolean) true if duplicate errors are to be
logged as an exception, otherwise false if not. When
duplicates are logged, the return value of 1 is never returned.public boolean add(java.lang.String userId,
java.lang.String password)
userId - (String) The id of the user associated with the password.password - (String) The password to add to the history.true if the record added successfully,
otherwise false.public java.util.ArrayList<PasswordHistory> getUser(java.lang.String userId)
userId - (String) The user id for the desired records.public boolean isReused(java.lang.String userId,
java.lang.String password)
false is returned.userId - (String) The id of the user associated with the password.password - (String) The password to check against recent history.true if the password has been recently used,
otherwise false.