Class DefaultPasswordGenerator
java.lang.Object
com.broadleafcommerce.auth.user.service.password.DefaultPasswordGenerator
- All Implemented Interfaces:
PasswordGenerator
Default implementation of
PasswordGenerator
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAllCharsFromStringToList
(String source, List<Character> destination) This implementation attempts to stay in line with the requirements ofDefaultPasswordRequestValidator
.protected char[]
protected String
randomAlphabetic
(int count) protected String
randomNumeric
(int count) protected String
randomSpecialCharacters
(int count)
-
Field Details
-
RANDOM
-
-
Constructor Details
-
DefaultPasswordGenerator
public DefaultPasswordGenerator()
-
-
Method Details
-
generateSecurePassword
This implementation attempts to stay in line with the requirements ofDefaultPasswordRequestValidator
.- Specified by:
generateSecurePassword
in interfacePasswordGenerator
- Returns:
- a random plaintext password
-
addAllCharsFromStringToList
-
randomAlphabetic
-
randomNumeric
-
randomSpecialCharacters
-
getAllowedSpecialCharacters
protected char[] getAllowedSpecialCharacters()
-