Class DefaultPwdValidatorStrategyImpl

java.lang.Object
com.skava.strategyimpl.DefaultPwdValidatorStrategyImpl
All Implemented Interfaces:
PwdValidatorStrategy

public class DefaultPwdValidatorStrategyImpl extends Object implements PwdValidatorStrategy
This class provides functionality of validating the user password by default validator config.
Author:
Infosys Equinox
  • Field Details

    • IS_VALID_PASSWORD

      public static final String IS_VALID_PASSWORD
      The IS_VALID_PASSWORD.
      See Also:
    • DEFAULT_USER_CREDENTIAL_MIN_LENGTH

      public static final String DEFAULT_USER_CREDENTIAL_MIN_LENGTH
      The default user pwd min length.
      See Also:
    • USER_CREDENTIAL_MIN_LENGTH

      public static final String USER_CREDENTIAL_MIN_LENGTH
      The user pwd min length.
      See Also:
    • DEFAULT_USER_CREDENTIAL_MAX_LENGTH

      public static final String DEFAULT_USER_CREDENTIAL_MAX_LENGTH
      The default user pwd max length.
      See Also:
    • USER_CREDENTIAL_MAX_LENGTH

      public static final String USER_CREDENTIAL_MAX_LENGTH
      The user pwd max length.
      See Also:
    • DEFAULT_USER_ALLOWED_SPECIAL_CHARS

      public static final String DEFAULT_USER_ALLOWED_SPECIAL_CHARS
      The default user allowed special chars.
      See Also:
    • DEFAULT_ALLOW_NUMBER

      public static final boolean DEFAULT_ALLOW_NUMBER
      The default allow number.
      See Also:
    • DEFAULT_ALLOW_UPPERCASE

      public static final boolean DEFAULT_ALLOW_UPPERCASE
      The default allow uppercase.
      See Also:
    • DEFAULT_ALLOW_LOWERCASE

      public static final boolean DEFAULT_ALLOW_LOWERCASE
      The default allow lowercase.
      See Also:
    • PASS_PATTERNS

      public static final String PASS_PATTERNS
      The default password patterns.
      See Also:
    • PASS_PATTERNS_ALLOWNUMBER

      public static final String PASS_PATTERNS_ALLOWNUMBER
      The password patterns allow numbers
      See Also:
    • PASS_PATTERNS_ALLOWUPPERCASE

      public static final String PASS_PATTERNS_ALLOWUPPERCASE
      The password patterns allow upper case
      See Also:
    • PASS_PATTERNS_ALLOWLOWERCASE

      public static final String PASS_PATTERNS_ALLOWLOWERCASE
      The password patterns allow lower case
      See Also:
    • SPECIAL_CHARACTERS_1

      public static final String SPECIAL_CHARACTERS_1
      The special characters.
      See Also:
    • SPECIAL_CHARACTERS_2

      public static final String SPECIAL_CHARACTERS_2
      The special characters with numbers.
      See Also:
    • SPECIAL_CHARACTERS_3

      public static final String SPECIAL_CHARACTERS_3
      The special characters brackets.
      See Also:
    • SPECIAL_CHARACTERS_4

      public static final String SPECIAL_CHARACTERS_4
      The special characters new.
      See Also:
    • PWD_MIN_LENGTH

      public static final String PWD_MIN_LENGTH
      Password min length in Collection property
      See Also:
    • PWD_MAX_LENGTH

      public static final String PWD_MAX_LENGTH
      Password max length in Collection property
      See Also:
    • USER_ALLOWED_SPECIAL_CHARS

      public static final String USER_ALLOWED_SPECIAL_CHARS
      Allowed special characters in Collection property
      See Also:
    • ALLOW_NUMBER

      public static final String ALLOW_NUMBER
      Allow number in Collection property
      See Also:
    • ALLOW_UPPERCASE

      public static final String ALLOW_UPPERCASE
      Allow Uppercase in Collection property
      See Also:
    • ALLOW_LOWERCASE

      public static final String ALLOW_LOWERCASE
      Allow Lowercase in Collection property
      See Also:
  • Constructor Details

    • DefaultPwdValidatorStrategyImpl

      public DefaultPwdValidatorStrategyImpl()
  • Method Details

    • isValidPassword

      public boolean isValidPassword(String password, org.json.JSONObject passwordValidatorConfig)
      This method is used to checks whether the given password is valid password or not.
      Specified by:
      isValidPassword in interface PwdValidatorStrategy
      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 interface PwdValidatorStrategy
      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