Class DefaultPasswordGenerator
java.lang.Object
org.apache.syncope.core.spring.security.DefaultPasswordGenerator
- All Implemented Interfaces:
PasswordGenerator
Generate random passwords according to given policies.
When no minimum and / or maximum length are specified, default values are set.
WARNING: This class only takes
DefaultPasswordRuleConf into account.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Loggerprotected static final intprotected final Map<String, PasswordRule> protected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(List<PasswordPolicy> policies) protected Stringgenerate(DefaultPasswordRuleConf ruleConf) generate(ExternalResource resource, List<Realm> realms) protected List<PasswordRule> getPasswordRules(PasswordPolicy policy) protected DefaultPasswordRuleConfmerge(List<DefaultPasswordRuleConf> defaultRuleConfs)
-
Field Details
-
LOG
-
VERY_MIN_LENGTH
protected static final int VERY_MIN_LENGTH- See Also:
-
VERY_MAX_LENGTH
protected static final int VERY_MAX_LENGTH- See Also:
-
MIN_LENGTH_IF_ZERO
protected static final int MIN_LENGTH_IF_ZERO- See Also:
-
perContextPasswordRules
-
-
Constructor Details
-
DefaultPasswordGenerator
public DefaultPasswordGenerator()
-
-
Method Details
-
generate
- Specified by:
generatein interfacePasswordGenerator
-
getPasswordRules
-
generate
- Specified by:
generatein interfacePasswordGenerator
-
merge
-
generate
-