Package rs.baselib.crypto
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 booleanisHash(java.lang.String passwordHash)Returns whether the given hash string was produced using the implemented hashing algorithm.
-
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:
truewhen this hash was produced by this password hasher (or using the same algorithm).
-