public class PasswordScoreConstraint extends Object implements PasswordConstraint
Constructor and Description |
---|
PasswordScoreConstraint(PasswordScore passwordScore,
PasswordScoreService passwordScoreService) |
Modifier and Type | Method and Description |
---|---|
PasswordScore |
getMinimumPasswordScore() |
String |
toString() |
boolean |
validate(ValidatePasswordRequest request)
Validates the given credential according to this constraint's rules.
|
public PasswordScoreConstraint(PasswordScore passwordScore, PasswordScoreService passwordScoreService)
passwordScore
- a minimum calculated score the password must matchpasswordScoreService
- A service to calculate the score of a PasswordCredential
public boolean validate(ValidatePasswordRequest request)
PasswordConstraint
validate
in interface PasswordConstraint
request
- a ValidatePasswordRequestpublic PasswordScore getMinimumPasswordScore()
Copyright © 2020 Atlassian. All rights reserved.