@Service(value=PasswordConstraint.class) public class LengthConstraint extends BaseConstraint implements PasswordConstraint
| Constructor and Description |
|---|
LengthConstraint() |
LengthConstraint(java.lang.Integer min,
java.lang.Integer max) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
passRule(java.lang.String password) |
public LengthConstraint()
public LengthConstraint(java.lang.Integer min,
java.lang.Integer max)
min - Can be null. Default 10 system prop "password.constraints.min.length"max - Can be null. Default 128 system prop "password.constraints.max.length"public java.util.Optional<java.lang.String> passRule(java.lang.String password)
passRule in interface PasswordConstraintpassword - The password to check against the implemented constraint.Optional.empty() for passed and Optional.of(Object) with fail message as valueCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.