Package org.dspace.authorize
Class RegexPasswordValidator
- java.lang.Object
-
- org.dspace.authorize.RegexPasswordValidator
-
- All Implemented Interfaces:
PasswordValidatorService
public class RegexPasswordValidator extends Object implements PasswordValidatorService
Implementation ofPasswordValidatorServicethat verifies if the given passowrd matches the configured pattern.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description RegexPasswordValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPasswordValid(String password)This method checks whether the password is validbooleanisPasswordValidationEnabled()Check if the password validator is active.
-
-
-
Method Detail
-
isPasswordValidationEnabled
public boolean isPasswordValidationEnabled()
Description copied from interface:PasswordValidatorServiceCheck if the password validator is active.- Specified by:
isPasswordValidationEnabledin interfacePasswordValidatorService
-
isPasswordValid
public boolean isPasswordValid(String password)
Description copied from interface:PasswordValidatorServiceThis method checks whether the password is valid- Specified by:
isPasswordValidin interfacePasswordValidatorService- Parameters:
password- password to validate
-
-