Class PasswordValidation
java.lang.Object
api.mpba.rastvdmy.service.validator.PasswordValidation
- All Implemented Interfaces:
ValidationStrategy
Validates the password according to the specified rules.
The password must contain at least one uppercase letter,
one digit or special character, and be 8-20 characters long.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PasswordValidation
public PasswordValidation()
-
-
Method Details
-
validate
Validates the given password.- Specified by:
validate
in interfaceValidationStrategy
- Parameters:
password
- the password to validate- Throws:
ApplicationException
- if the password is invalid
-