Class InternalDirectoryPasswordConstraintsLoader
java.lang.Object
com.atlassian.crowd.directory.password.constraint.InternalDirectoryPasswordConstraintsLoader
- All Implemented Interfaces:
PasswordConstraintsLoader
public class InternalDirectoryPasswordConstraintsLoader
extends Object
implements PasswordConstraintsLoader
Instantiates the active
PasswordConstraint
's
for a directory based on the directory's attributes. This implementation uses attributes
defined on an InternalDirectory
.- Since:
- 5.3.0
- See Also:
-
AbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_DIGITS
AbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_LENGTH
AbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_LOWERCASE
AbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_RULES_MATCHED
AbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_SCORE
AbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_SPECIAL_CHARACTERS
AbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_UPPERCASE
AbstractInternalDirectory.ATTRIBUTE_PASSWORD_REGEX
-
Constructor Summary
ConstructorDescriptionInternalDirectoryPasswordConstraintsLoader
(PasswordScoreService passwordScoreService) -
Method Summary
Modifier and TypeMethodDescriptiongetFromDirectoryAttributes
(long directoryId, Attributes attributes) Returns all constraints that are configured for a directory.
-
Constructor Details
-
InternalDirectoryPasswordConstraintsLoader
-
-
Method Details
-
getFromDirectoryAttributes
Description copied from interface:PasswordConstraintsLoader
Returns all constraints that are configured for a directory.- Specified by:
getFromDirectoryAttributes
in interfacePasswordConstraintsLoader
- Parameters:
directoryId
- a directory's idattributes
- a directory's Attributes- Returns:
- a set of
PasswordConstraint
's
-