Element Summary

ElementDescriptionClass
blacklist-passwordfilterThis class is used for filtering passwords from a blacklist. If the proposed password is contained within the blacklist, null is returned to indicate the password is not suitable. Otherwise the password itself is returned.org.josso.selfservices.password.generator.DefaultBlacklistFilter
password-generatorIt performs the actual password generation. The idea of this class is to generate passwords that are relatively easily to remember but at the same time complex enough. It utilizes a predefined set of vowels and consonants that are brought together by an iterative algorithm. The concept of dipthong is also used which can be used as an additional flag for a consonant or a vowel. Typical examples of dipthongs are ei for vowels and th for consonants.

Various algorithms for random generation can be used for feeding the process of password generation. This ensures unique password creation.

By default two filters are registered in the PwGenerator. The first one is an empty black list filter. It can be used to filter out forbidden predefined passwords. The second one is based on regular expressions and uses frequently utilized rules for filtering passwords such as the number of contained symbols, digits and so on. See the help for a detailed description.

org.josso.selfservices.password.generator.PasswordGeneratorImpl
regex-passwordfilterA password filter that uses to regular expressions to filter commonly forbidden patterns in passwords. The class supports also a blacklist filtering. By default the blacklist is empty.org.josso.selfservices.password.generator.DefaultRegExFilter

Element Detail

Element: blacklist-passwordfilter

AttributeTypeDescription
descriptionxs:string
idxs:string
ElementTypeDescription
blacklist(<spring:bean/>)*

Element: password-generator

AttributeTypeDescription
generateCapitalLettersxs:boolean
generateNumeralsxs:boolean
includeAmbigousCharsxs:boolean
includeSpecialSymbolsxs:boolean
maxAttemptsxs:integer
passwordLengthxs:integer
regexAtLeastTwoDigitsxs:boolean
regexAtLeastTwoSymbolsxs:boolean
regexEndsNoDigitxs:boolean
regexEndsNoSmallLetterxs:boolean
regexEndsNoSymbolxs:boolean
regexEndsNosUpperLetterxs:boolean
regexOnlyOneCapitalxs:boolean
regexOnlyOneDigitxs:boolean
regexOnlyOneSymbolxs:boolean
regexStartsNoDigitxs:boolean
regexStartsNoSmallLetterxs:boolean
regexStartsNoSymbolxs:boolean
regexStartsNoUpperLetterxs:boolean
secureRandomAlgorithmxs:string
secureRandomProviderxs:string
useSimpleRandomxs:boolean
ElementTypeDescription
filters(blacklist-passwordfilter | regex-passwordfilter)*

Element: regex-passwordfilter

AttributeTypeDescription
descriptionxs:string
idxs:string
ElementTypeDescription
blacklist(<spring:bean/>)*