public class PasswordPolicyChecker extends Object
| Constructor and Description |
|---|
PasswordPolicyChecker() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkPassword(PasswordPolicy policy,
String password)
Check a given password against a given
PasswordPolicy. |
public static boolean checkPassword(PasswordPolicy policy, String password)
PasswordPolicy. If the
password does not match a policy rules a
PasswordPolicyException is thrown. If the password passes all
rules the method returns true.policy - the PasswordPolicy against which the password is testedpassword - the password that should be testedtrue if the password is policy-compliant (if not an
exception is thrown)Copyright © 2013–2019 camunda services GmbH. All rights reserved.