Package fr.paris.lutece.util.password
Interface IPassword
public interface IPassword
Representation of a user password stored in the database
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the user supplied password is equal to the one represented by this objectGet a representation of this password suitable for storagebooleanisLegacy()Tells if the password is in legacy format and should be upgraded to the current format
-
Method Details
-
check
Check if the user supplied password is equal to the one represented by this object- Parameters:
strCleartextPassword- the user supplied password in clear text- Returns:
trueif the password match,falseotherwise
-
isLegacy
boolean isLegacy()Tells if the password is in legacy format and should be upgraded to the current format- Returns:
trueif the password is in a legacy format,falseotherwise
-
getStorableRepresentation
String getStorableRepresentation()Get a representation of this password suitable for storage- Returns:
- a representation of this password suitable for storage
-