Package com.skava.strategyimpl
Class DefaultPwdValidatorStrategyImpl
java.lang.Object
com.skava.strategyimpl.DefaultPwdValidatorStrategyImpl
- All Implemented Interfaces:
PwdValidatorStrategy
This class provides functionality of validating the user password by default validator config.
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Allow Lowercase in Collection propertystatic final String
Allow number in Collection propertystatic final String
Allow Uppercase in Collection propertystatic final boolean
The default allow lowercase.static final boolean
The default allow number.static final boolean
The default allow uppercase.static final String
The default user allowed special chars.static final String
The default user pwd max length.static final String
The default user pwd min length.static final String
The IS_VALID_PASSWORD.static final String
The default password patterns.static final String
The password patterns allow lower casestatic final String
The password patterns allow numbersstatic final String
The password patterns allow upper casestatic final String
Password max length in Collection propertystatic final String
Password min length in Collection propertystatic final String
The special characters.static final String
The special characters with numbers.static final String
The special characters brackets.static final String
The special characters new.static final String
Allowed special characters in Collection propertystatic final String
The user pwd max length.static final String
The user pwd min length. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValidPassword
(String password, org.json.JSONObject passwordValidatorConfig) This method is used to checks whether the given password is valid password or not.boolean
isValidPassword
(String password, org.json.JSONObject passwordValidatorConfig, Map<String, String> propMap) This method is used to checks whether the given password is valid password or not.
-
Field Details
-
IS_VALID_PASSWORD
The IS_VALID_PASSWORD.- See Also:
-
DEFAULT_USER_CREDENTIAL_MIN_LENGTH
The default user pwd min length.- See Also:
-
USER_CREDENTIAL_MIN_LENGTH
The user pwd min length.- See Also:
-
DEFAULT_USER_CREDENTIAL_MAX_LENGTH
The default user pwd max length.- See Also:
-
USER_CREDENTIAL_MAX_LENGTH
The user pwd max length.- See Also:
-
DEFAULT_USER_ALLOWED_SPECIAL_CHARS
The default user allowed special chars.- See Also:
-
DEFAULT_ALLOW_NUMBER
public static final boolean DEFAULT_ALLOW_NUMBERThe default allow number.- See Also:
-
DEFAULT_ALLOW_UPPERCASE
public static final boolean DEFAULT_ALLOW_UPPERCASEThe default allow uppercase.- See Also:
-
DEFAULT_ALLOW_LOWERCASE
public static final boolean DEFAULT_ALLOW_LOWERCASEThe default allow lowercase.- See Also:
-
PASS_PATTERNS
The default password patterns.- See Also:
-
PASS_PATTERNS_ALLOWNUMBER
The password patterns allow numbers- See Also:
-
PASS_PATTERNS_ALLOWUPPERCASE
The password patterns allow upper case- See Also:
-
PASS_PATTERNS_ALLOWLOWERCASE
The password patterns allow lower case- See Also:
-
SPECIAL_CHARACTERS_1
The special characters.- See Also:
-
SPECIAL_CHARACTERS_2
The special characters with numbers.- See Also:
-
SPECIAL_CHARACTERS_3
The special characters brackets.- See Also:
-
SPECIAL_CHARACTERS_4
The special characters new.- See Also:
-
PWD_MIN_LENGTH
Password min length in Collection property- See Also:
-
PWD_MAX_LENGTH
Password max length in Collection property- See Also:
-
USER_ALLOWED_SPECIAL_CHARS
Allowed special characters in Collection property- See Also:
-
ALLOW_NUMBER
Allow number in Collection property- See Also:
-
ALLOW_UPPERCASE
Allow Uppercase in Collection property- See Also:
-
ALLOW_LOWERCASE
Allow Lowercase in Collection property- See Also:
-
-
Constructor Details
-
DefaultPwdValidatorStrategyImpl
public DefaultPwdValidatorStrategyImpl()
-
-
Method Details
-
isValidPassword
This method is used to checks whether the given password is valid password or not.- Specified by:
isValidPassword
in interfacePwdValidatorStrategy
- Parameters:
password
- Indicates the password of an user which is used for validating the user password by default validator config.passwordValidatorConfig
- JSONObject passwordConfig for validating the password by default validator config.- Returns:
- True, if it is a valid password
-
isValidPassword
public boolean isValidPassword(String password, org.json.JSONObject passwordValidatorConfig, Map<String, String> propMap) This method is used to checks whether the given password is valid password or not.- Specified by:
isValidPassword
in interfacePwdValidatorStrategy
- Parameters:
password
- Indicates the password of an user which is used for validating the user password by default validator config.passwordValidatorConfig
- JSONObject passwordConfig for validating the password by default validator config.propMap
- Indicates the collection properties map.- Returns:
- True, if it is a valid password
-