passwordPolicySpecs.add(passwordPolicySpec2);
passwordGenerator.generate(passwordPolicySpecs);
}
private PasswordPolicySpec createBasePasswordPolicySpec() {
PasswordPolicySpec basePasswordPolicySpec = new PasswordPolicySpec();
basePasswordPolicySpec.setAlphanumericRequired(false);
basePasswordPolicySpec.setDigitRequired(false);
basePasswordPolicySpec.setLowercaseRequired(false);
basePasswordPolicySpec.setMaxLength(1000);
basePasswordPolicySpec.setMinLength(8);
basePasswordPolicySpec.setMustEndWithAlpha(false);
basePasswordPolicySpec.setMustEndWithDigit(false);
basePasswordPolicySpec.setMustEndWithNonAlpha(false);
basePasswordPolicySpec.setMustStartWithAlpha(false);
basePasswordPolicySpec.setMustStartWithDigit(false);
basePasswordPolicySpec.setMustStartWithNonAlpha(false);
basePasswordPolicySpec.setMustntEndWithAlpha(false);
basePasswordPolicySpec.setMustntEndWithDigit(false);
basePasswordPolicySpec.setMustntEndWithNonAlpha(false);
basePasswordPolicySpec.setMustntStartWithAlpha(false);
basePasswordPolicySpec.setMustntStartWithDigit(false);
basePasswordPolicySpec.setMustntStartWithNonAlpha(false);
basePasswordPolicySpec.setNonAlphanumericRequired(false);
basePasswordPolicySpec.setUppercaseRequired(false);
return basePasswordPolicySpec;
}