Class PasswordHasherImpl
java.lang.Object
net.datenwerke.security.service.crypto.passwordhasher.PasswordHasherImpl
- All Implemented Interfaces:
PasswordHasher
- Direct Known Subclasses:
DummyPasswordHasherImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateRFC2104HMAC(String data, String key) hashPassword(String password) Returns a hashed passwordhashPassword(String password, String salt) booleanvalidatePassword(String hashedPassword, String cleartextPassword)
-
Constructor Details
-
PasswordHasherImpl
public PasswordHasherImpl(<any> passphrase)
-
-
Method Details
-
hashPassword
Description copied from interface:PasswordHasherReturns a hashed password- Specified by:
hashPasswordin interfacePasswordHasher- Parameters:
password-
-
hashPassword
- Specified by:
hashPasswordin interfacePasswordHasher
-
generateSalt
-
validatePassword
- Specified by:
validatePasswordin interfacePasswordHasher
-
calculateRFC2104HMAC
- Throws:
SignatureException
-
getHmacPassphrase
- Specified by:
getHmacPassphrasein interfacePasswordHasher
-