Package org.dspace.authorize
Class RegexPasswordValidator
java.lang.Object
org.dspace.authorize.RegexPasswordValidator
- All Implemented Interfaces:
PasswordValidatorService
Implementation of
PasswordValidatorService that verifies if the given
password matches the configured pattern.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPasswordValid(String password) This method checks whether the password is validbooleanCheck if the password validator is active.
-
Constructor Details
-
RegexPasswordValidator
public RegexPasswordValidator()
-
-
Method Details
-
isPasswordValidationEnabled
public boolean isPasswordValidationEnabled()Description copied from interface:PasswordValidatorServiceCheck if the password validator is active.- Specified by:
isPasswordValidationEnabledin interfacePasswordValidatorService
-
isPasswordValid
Description copied from interface:PasswordValidatorServiceThis method checks whether the password is valid- Specified by:
isPasswordValidin interfacePasswordValidatorService- Parameters:
password- password to validate
-