Class DefaultPasswordGenerator
java.lang.Object
com.broadleafcommerce.auth.user.service.password.DefaultPasswordGenerator
- All Implemented Interfaces:
PasswordGenerator
Default implementation of
PasswordGenerator.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAllCharsFromStringToList(String source, List<Character> destination) This implementation attempts to stay in line with the requirements ofDefaultPasswordRequestValidator.protected char[]protected StringrandomAlphabetic(int count) protected StringrandomNumeric(int count) protected StringrandomSpecialCharacters(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:
generateSecurePasswordin interfacePasswordGenerator- Returns:
- a random plaintext password
-
addAllCharsFromStringToList
-
randomAlphabetic
-
randomNumeric
-
randomSpecialCharacters
-
getAllowedSpecialCharacters
protected char[] getAllowedSpecialCharacters()
-