public interface IPasswordConstraintList extends com.helger.commons.ICloneable<IPasswordConstraintList>
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllPasswordConstraintDescriptions(Locale aContentLocale)
Get a list of all password constraint descriptions in the specified locale
(e.g. for hinting a user)
|
List<IPasswordConstraint> |
getAllPasswordConstraints() |
int |
getConstraintCount() |
List<String> |
getInvalidPasswordDescriptions(String sPlainTextPassword,
Locale aContentLocale)
Check if the passed password is valid.
|
boolean |
hasConstraints() |
boolean |
isPasswordValid(String sPlainTextPassword)
Check if the passed plaintext password is valid.
|
boolean hasConstraints()
true if at least one constraint is present@Nonnegative int getConstraintCount()
@Nonnull @ReturnsMutableCopy List<IPasswordConstraint> getAllPasswordConstraints()
null.boolean isPasswordValid(@Nullable String sPlainTextPassword)
sPlainTextPassword - The password to check. May be null.true if no constraint was unfulfilled (meaning that if
no constrained is defined, every password is valid).@Nonnull @ReturnsMutableCopy List<String> getInvalidPasswordDescriptions(@Nullable String sPlainTextPassword, @Nonnull Locale aContentLocale)
sPlainTextPassword - The password to check. May be null.aContentLocale - The content locale to be used to determine the descriptions.null but empty list if no constraint was
unfulfilled (meaning that if no constrained is defined, every
password is valid). If the returned list is not empty than the
password is invalid.@Nonnull @ReturnsMutableCopy List<String> getAllPasswordConstraintDescriptions(@Nonnull Locale aContentLocale)
aContentLocale - The locale to be used for text resolving.null list with all constraint descriptions. If
the returned list is empty, it means that no constraint is defined.Copyright © 2014–2015 Philip Helger. All rights reserved.