Package de.srsoftware.tools
Schnittstelle PasswordHasher<T>
- Typparameter:
T- The representation of the password, e.g. String, byte array, bigint…
- Alle bekannten Implementierungsklassen:
UuidHasher
public interface PasswordHasher<T>
A haser for passwords
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunghashes a password using a second input as saltdefault booleantest, whether a given plain text password matches a hashed passwordreturn the salt part of a given hashed password
-
Methodendetails
-
hash
hashes a password using a second input as salt- Parameter:
password- the password to processsalt- the salt added to the password- Gibt zurück:
- the hased password
-
salt
return the salt part of a given hashed password- Parameter:
hashedPassword- the hashed password to tokenize- Gibt zurück:
- the salt extracted from the password
-
matches
test, whether a given plain text password matches a hashed password- Parameter:
plaintextPassword- the plain text password to verifyhashedPassword- the password hash to verigy against- Gibt zurück:
- true, only if the plain text password corresponds with the hashed password
-