Interface LengthBasedPasswordValidatorCfg
-
- All Superinterfaces:
Configuration,PasswordValidatorCfg
public interface LengthBasedPasswordValidatorCfg extends PasswordValidatorCfg
A server-side interface for querying Length Based Password Validator settings.The Length Based Password Validator is used to determine whether a proposed password is acceptable based on whether the number of characters it contains falls within an acceptable range of values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLengthBasedChangeListener(ConfigurationChangeListener<LengthBasedPasswordValidatorCfg> listener)Register to be notified when this Length Based Password Validator is changed.Class<? extends LengthBasedPasswordValidatorCfg>configurationClass()Gets the configuration class associated with this Length Based Password Validator.StringgetJavaClass()Gets the "java-class" property.intgetMaxPasswordLength()Gets the "max-password-length" property.intgetMinPasswordLength()Gets the "min-password-length" property.voidremoveLengthBasedChangeListener(ConfigurationChangeListener<LengthBasedPasswordValidatorCfg> listener)Deregister an existing Length Based Password Validator configuration change listener.-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
Methods inherited from interface org.forgerock.opendj.server.config.server.PasswordValidatorCfg
addChangeListener, isEnabled, removeChangeListener
-
-
-
-
Method Detail
-
configurationClass
Class<? extends LengthBasedPasswordValidatorCfg> configurationClass()
Gets the configuration class associated with this Length Based Password Validator.- Specified by:
configurationClassin interfaceConfiguration- Specified by:
configurationClassin interfacePasswordValidatorCfg- Returns:
- Returns the configuration class associated with this Length Based Password Validator.
-
addLengthBasedChangeListener
void addLengthBasedChangeListener(ConfigurationChangeListener<LengthBasedPasswordValidatorCfg> listener)
Register to be notified when this Length Based Password Validator is changed.- Parameters:
listener- The Length Based Password Validator configuration change listener.
-
removeLengthBasedChangeListener
void removeLengthBasedChangeListener(ConfigurationChangeListener<LengthBasedPasswordValidatorCfg> listener)
Deregister an existing Length Based Password Validator configuration change listener.- Parameters:
listener- The Length Based Password Validator configuration change listener.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the password validator implementation.
- Specified by:
getJavaClassin interfacePasswordValidatorCfg- Returns:
- Returns the value of the "java-class" property.
-
getMaxPasswordLength
int getMaxPasswordLength()
Gets the "max-password-length" property.Specifies the maximum number of characters that can be included in a proposed password.
A value of zero indicates that there will be no upper bound enforced. If both minimum and maximum lengths are defined, then the minimum length must be less than or equal to the maximum length.
- Returns:
- Returns the value of the "max-password-length" property.
-
getMinPasswordLength
int getMinPasswordLength()
Gets the "min-password-length" property.Specifies the minimum number of characters that must be included in a proposed password.
A value of zero indicates that there will be no lower bound enforced. If both minimum and maximum lengths are defined, then the minimum length must be less than or equal to the maximum length.
- Returns:
- Returns the value of the "min-password-length" property.
-
-