コード例 #1
0
  /**
   * @param settings
   * @return
   */
  public static String createComplexityPattern(SecurityConfigDTO settings) {
    boolean mixedCase = settings.isMixedCaseRequired();
    boolean numRqd = settings.isNumberRequired();
    boolean symRqd = settings.isSymbolRequired();
    int minLength = settings.getMinPasswordLength();
    int maxLength = settings.getMaxPasswordLength();

    return (createComplexityPattern(mixedCase, numRqd, symRqd, minLength, maxLength));
  }
コード例 #2
0
  /**
   * @param settings
   * @return
   */
  public static ArrayList createComplexityPatternDescription(SecurityConfigDTO settings) {

    boolean mixedCase = settings.isMixedCaseRequired();
    boolean numRqd = settings.isNumberRequired();
    boolean symRqd = settings.isSymbolRequired();
    int minLength = settings.getMinPasswordLength();
    int maxLength = settings.getMaxPasswordLength();
    boolean adjNum = settings.isAdjacentNumberAllowed();
    boolean userName = settings.isPasswordContainsUserNameAllowed();

    return (createComplexityPatternDescription(
        mixedCase, numRqd, symRqd, minLength, maxLength, adjNum, userName));
  }