Interface IPassword


public interface IPassword
Representation of a user password stored in the database
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    check(String strCleartextPassword)
    Check if the user supplied password is equal to the one represented by this object
    Get a representation of this password suitable for storage
    boolean
    Tells if the password is in legacy format and should be upgraded to the current format
  • Method Details

    • 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:
      true if the password match, false otherwise
    • isLegacy

      boolean isLegacy()
      Tells if the password is in legacy format and should be upgraded to the current format
      Returns:
      true if the password is in a legacy format, false otherwise
    • getStorableRepresentation

      String getStorableRepresentation()
      Get a representation of this password suitable for storage
      Returns:
      a representation of this password suitable for storage