Package org.passay
Interface PasswordValidator
- All Known Implementing Classes:
DefaultPasswordValidator
public interface PasswordValidator
Interface for password validators.
-
Method Summary
Modifier and TypeMethodDescriptionBiFunction<List<? extends Rule>,PasswordData, Entropy> Returns the entropy provider for this validator.Returns the message resolver for this validator.getRules()Returns the password rules for this validator.validate(PasswordData passwordData) Validates the supplied password data against the rules in this validator.
-
Method Details
-
getRules
Returns the password rules for this validator.- Returns:
- unmodifiable list of password rules
-
getMessageResolver
MessageResolver getMessageResolver()Returns the message resolver for this validator.- Returns:
- message resolver
-
getEntropyProvider
BiFunction<List<? extends Rule>,PasswordData, getEntropyProvider()Entropy> Returns the entropy provider for this validator.- Returns:
- entropy provider
-
validate
Validates the supplied password data against the rules in this validator.- Parameters:
passwordData- to validate- Returns:
- validation result
-