@ThreadSafe public final class GlobalPasswordSettings extends Object
| Modifier and Type | Method and Description |
|---|---|
static PasswordHash |
createUserDefaultPasswordHash(IPasswordSalt aSalt,
String sPlainTextPassword)
Create the password hash from the passed plain text password, using the
default password hash creator.
|
static PasswordHash |
createUserPasswordHash(String sAlgorithmName,
IPasswordSalt aSalt,
String sPlainTextPassword)
Create the password hash from the passed plain text password, using the
default password hash creator.
|
static IPasswordConstraintList |
getPasswordConstraintList() |
static PasswordHashCreatorManager |
getPasswordHashCreatorManager() |
static boolean |
isAnyPasswordConstraintDefined() |
static void |
setPasswordConstraintList(IPasswordConstraintList aPasswordConstraintList)
Set the global password constraint list.
|
@Nonnull @ReturnsMutableCopy public static IPasswordConstraintList getPasswordConstraintList()
null but
maybe empty.public static void setPasswordConstraintList(@Nonnull IPasswordConstraintList aPasswordConstraintList)
aPasswordConstraintList - The list to be set. May not be null.public static boolean isAnyPasswordConstraintDefined()
true if any password constraint is defined,
false if not.@Nonnull public static PasswordHashCreatorManager getPasswordHashCreatorManager()
PasswordHashCreatorManager.@Nonnull public static PasswordHash createUserDefaultPasswordHash(@Nullable 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.null.@Nonnull public static PasswordHash createUserPasswordHash(@Nonnull@Nonempty String sAlgorithmName, @Nullable IPasswordSalt aSalt, @Nonnull String sPlainTextPassword)
sAlgorithmName - The password hash creator algorithm name to query. May neither be
null nor empty.aSalt - Optional salt to be used. This parameter is only null
for backwards compatibility reasons.sPlainTextPassword - Plain text password. May not be null.null.Copyright © 2014–2015 Philip Helger. All rights reserved.