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)
PasswordConstraint
validate
in interface PasswordConstraint
request
- a ValidatePasswordRequestCopyright © 2021 Atlassian. All rights reserved.