Interface ExtendedPasswordHasher

All Superinterfaces:
PasswordHasher
All Known Implementing Classes:
BlowfishPasswordHasher, DummyPasswordHasher, Md5PasswordHasher, PhpPasswordHasher, Sha256PasswordHasher, Sha512PasswordHasher

public interface ExtendedPasswordHasher
extends PasswordHasher
Extends PasswordHasher by a method to detect responsibility.
Since:
1.2.9
Author:
ralph
  • Method Summary

    Modifier and Type Method Description
    boolean isHash​(java.lang.String passwordHash)
    Returns whether the given hash string was produced using the implemented hashing algorithm.

    Methods inherited from interface rs.baselib.crypto.PasswordHasher

    getPasswordHash, testPassword
  • Method Details

    • isHash

      boolean isHash​(java.lang.String passwordHash)
      Returns whether the given hash string was produced using the implemented hashing algorithm.
      Parameters:
      passwordHash - the hash to be checked
      Returns:
      true when this hash was produced by this password hasher (or using the same algorithm).