/** * @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)); }
/** * @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)); }