Class PasswordValidator
java.lang.Object
de.knightsoftnet.validators.shared.impl.PasswordValidator
public class PasswordValidator
extends Object
implements jakarta.validation.ConstraintValidator<Password,Object>
Check passwords if they fulfill some complexity rules.
Using
With
size limits should be added by separate size annotation.
- lowercase
- upercase
- digits
- special character
blacklist you can give a array of words which are not allowed to be part of
the password. Default is no entry.Using
disalowedStartChars you can define an array of characters (String) which are
not allowed as first character in the password. Default is no entry.With
maxRepeatChar you can limit the repeat of a single character, default is 0
which means no limitation.size limits should be added by separate size annotation.
- Author:
- Manfred Tremmel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidinitialize(Password pconstraintAnnotation) initialize the validator.final booleancheck if given object is valid.
-
Constructor Details
-
PasswordValidator
public PasswordValidator()
-
-
Method Details