|
@ -38,13 +38,13 @@ public class PasswordGenerator { |
|
|
|
|
|
|
|
|
if (isRequireEveryConfiguredCharacterType()) { |
|
|
if (isRequireEveryConfiguredCharacterType()) { |
|
|
if (generatorPosition == 0 && isUseLowercase()) { |
|
|
if (generatorPosition == 0 && isUseLowercase()) { |
|
|
customCharacterPool += lowercaseCharacters; |
|
|
|
|
|
|
|
|
customCharacterPool = lowercaseCharacters; |
|
|
} else if (generatorPosition == 1 && isUseUppercase()) { |
|
|
} else if (generatorPosition == 1 && isUseUppercase()) { |
|
|
customCharacterPool += uppercaseCharacters; |
|
|
|
|
|
|
|
|
customCharacterPool = uppercaseCharacters; |
|
|
} else if (generatorPosition == 2 && isUseDigits()) { |
|
|
} else if (generatorPosition == 2 && isUseDigits()) { |
|
|
customCharacterPool += digits; |
|
|
|
|
|
|
|
|
customCharacterPool = digits; |
|
|
} else if (generatorPosition == 3 && isUseSpecialCharacters()) { |
|
|
} else if (generatorPosition == 3 && isUseSpecialCharacters()) { |
|
|
customCharacterPool += specialCharacters; |
|
|
|
|
|
|
|
|
customCharacterPool = specialCharacters; |
|
|
} else { |
|
|
} else { |
|
|
customCharacterPool = characterPool; |
|
|
customCharacterPool = characterPool; |
|
|
} |
|
|
} |
|
|