public class PasswordLengthConstraint extends Object implements PasswordConstraint
Constructor and Description |
---|
PasswordLengthConstraint(int minimumLength) |
Modifier and Type | Method and Description |
---|---|
int |
getMinimumLength() |
String |
toString() |
boolean |
validate(ValidatePasswordRequest request)
Validates the given credential according to this constraint's rules.
|
public PasswordLengthConstraint(int minimumLength)
minimumLength
- The minimum length of a password. Must be at least zero.public int getMinimumLength()
public boolean validate(ValidatePasswordRequest request)
PasswordConstraint
validate
in interface PasswordConstraint
request
- a ValidatePasswordRequestCopyright © 2020 Atlassian. All rights reserved.