Class PasswordHash


public class PasswordHash extends Object
A password hash.

This combines the information for interpreting a hashed password:

  • the hash value
  • the salt used
  • the hashing function used

See Also:
  • Constructor Details

    • PasswordHash

      public PasswordHash()
      Default constructor.

      Creates an empty password hash, i.e. with empty function, salt and value.

    • PasswordHash

      public PasswordHash(String function, String salt, String value)
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns whether the password is empty.
    • getFunction

      public String getFunction()
      Returns the function identifier.
    • getSalt

      public String getSalt()
      Returns the salt.
    • getValue

      public String getValue()
      Returns the hash value.