public interface IPasswordHashCreator
| Modifier and Type | Method and Description |
|---|---|
String |
createPasswordHash(IPasswordSalt aSalt,
String sPlainTextPassword)
The method to create a message digest hash from a password.
|
String |
getAlgorithmName() |
boolean |
requiresSalt() |
@Nonnull @Nonempty String getAlgorithmName()
null nor empty. This is a self-chosen name and not
related to a JDK internal name.boolean requiresSalt()
true if this hash creator requires a salt,
false if not.@Nonnull String createPasswordHash(IPasswordSalt aSalt, @Nonnull String sPlainTextPassword)
aSalt - Optional salt to be used. This parameter is only null
for backwards compatibility reasons.sPlainTextPassword - Plain text password. May not be null.Copyright © 2016–2021 Philip Helger. All rights reserved.