Package org.passay
Interface ValidationResult
- All Known Implementing Classes:
AbstractValidationResult,FailureValidationResult,SuccessValidationResult
public interface ValidationResult
Result of a password validator.
-
Method Summary
Modifier and TypeMethodDescriptionReturns any details associated with the rule verification.doubleReturns the calculated entropy of thePasswordDataused to produce this validation result, based on the password rules specified.Returns a list of human-readable messages by iterating over the details in a failed rule result.Returns metadata associated with the rule verification.booleanisValid()Returns whether the result of the rule verification is a valid password.
-
Method Details
-
isValid
boolean isValid()Returns whether the result of the rule verification is a valid password.- Returns:
- valid password for this rule
-
getMetadata
RuleResultMetadata getMetadata()Returns metadata associated with the rule verification.- Returns:
- rule result metadata
-
getDetails
List<RuleResultDetail> getDetails()Returns any details associated with the rule verification.- Returns:
- rule result details
-
getMessages
Returns a list of human-readable messages by iterating over the details in a failed rule result.- Returns:
- list of human-readable messages describing the reason(s) for validation failure.
-
getEntropy
double getEntropy()Returns the calculated entropy of thePasswordDataused to produce this validation result, based on the password rules specified.- Returns:
- entropy estimate
-