@MustImplementEqualsAndHashcode
public interface IPasswordConstraint
| Modifier and Type | Method and Description |
|---|---|
void |
fillMicroElement(com.helger.commons.microdom.IMicroElement aElement)
This method is responsible for filling a micro element for serializing the
password constraints.
|
String |
getDescription(Locale aContentLocale)
Get a description of this constraint, so that it can be displayed to the
user
|
boolean |
isPasswordValid(String sPlainTextPassword)
Check if the supplied password matches this constraint
|
boolean isPasswordValid(@Nullable String sPlainTextPassword)
sPlainTextPassword - The plain text password to check. May be null.true if it is valid, false if it is not@Nullable String getDescription(@Nonnull Locale aContentLocale)
aContentLocale - The locale to get the description in. Never null.null if no text is present in the provided localevoid fillMicroElement(@Nonnull com.helger.commons.microdom.IMicroElement aElement)
aElement - The element to be filled. Never null.Copyright © 2014–2015 Philip Helger. All rights reserved.