PasswordPolicy.js

/**
* @classdesc Controls how users' passwords are dealt with. These settings are global and apply to all users on all
* related sites and servers.
* 
* Instances of this class should be obtained using 
* {@link Config#passwordPolicy Config.passwordPolicy}.
*
* @class
* @hideconstructor
*/
PasswordPolicy = function () {
	/**
	* If this option is enabled, passwords for non-Windows users will be stored in encrypted form. Note that Windows users do
	* not have passwords stored by CompleteFTP in any way. Instead, standard Windows authentication is used.
	*
	* @type {Boolean}
	*/
	this.store = null;

	/**
	* If enabled, non-Windows users can use the SITE command CPWD to change their password. SFTP also has a mechanism
	* permitting the changing of a password (which must be supported by the SFTP client).
	*
	* @type {Boolean}
	*/
	this.allowChange = null;

	/**
	* The minimum password length.
	*
	* @type {Number}
	*/
	this.minLength = null;

	/**
	* If enabled, passwords must be mixed-case.
	*
	* @type {Boolean}
	*/
	this.mustHaveMixedCase = null;

	/**
	* If enabled, passwords must contain a digit.
	*
	* @type {Boolean}
	*/
	this.mustHaveDigit = null;

	/**
	* If enabled, passwords must contain a special character.
	*
	* @type {Boolean}
	*/
	this.mustHaveSpecialChar = null;
}