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_DIGITSAbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_LENGTHAbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_LOWERCASEAbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_RULES_MATCHEDAbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_SCOREAbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_SPECIAL_CHARACTERSAbstractInternalDirectory.ATTRIBUTE_PASSWORD_MINIMUM_UPPERCASEAbstractInternalDirectory.ATTRIBUTE_PASSWORD_REGEX
-
Constructor Summary
ConstructorsConstructorDescriptionInternalDirectoryPasswordConstraintsLoader(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:PasswordConstraintsLoaderReturns all constraints that are configured for a directory.- Specified by:
getFromDirectoryAttributesin interfacePasswordConstraintsLoader- Parameters:
directoryId- a directory's idattributes- a directory's Attributes- Returns:
- a set of
PasswordConstraint's
-