public class RegexConstraint extends Object implements PasswordConstraint
| Constructor and Description |
|---|
RegexConstraint(String regex) |
| Modifier and Type | Method and Description |
|---|---|
String |
getRegex() |
String |
toString() |
boolean |
validate(ValidatePasswordRequest request)
Validates the given credential according to this constraint's rules.
|
public RegexConstraint(String regex)
regex - a regular expression the password must matchpublic String getRegex()
public boolean validate(ValidatePasswordRequest request)
PasswordConstraintvalidate in interface PasswordConstraintrequest - a ValidatePasswordRequestCopyright © 2018 Atlassian. All rights reserved.