Package fr.paris.lutece.util.password
Interface IPassword
-
public interface IPasswordRepresentation of a user password stored in the database
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheck(String strCleartextPassword)Check if the user supplied password is equal to the one represented by this objectStringgetStorableRepresentation()Get 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 Detail
-
check
boolean check(String strCleartextPassword)
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
-
-