Interface IPassword


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean check​(java.lang.String strCleartextPassword)
      Check if the user supplied password is equal to the one represented by this object
      java.lang.String getStorableRepresentation()
      Get a representation of this password suitable for storage
      boolean isLegacy()
      Tells if the password is in legacy format and should be upgraded to the current format
    • Method Detail

      • check

        boolean check​(java.lang.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

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