maximumFailedPasswordsForWipe = $maximumFailedPasswordsForWipe; } /** * @return int */ public function getMaximumFailedPasswordsForWipe() { return $this->maximumFailedPasswordsForWipe; } /** * Password expiration timeout. * * @param string $passwordExpirationTimeout */ public function setPasswordExpirationTimeout($passwordExpirationTimeout) { $this->passwordExpirationTimeout = $passwordExpirationTimeout; } /** * @return string */ public function getPasswordExpirationTimeout() { return $this->passwordExpirationTimeout; } /** * The length of the password history. After setting this field, the user * won't be able to enter a new password that is the same as any password in * the history. A value of 0 means there is no restriction. * * @param int $passwordHistoryLength */ public function setPasswordHistoryLength($passwordHistoryLength) { $this->passwordHistoryLength = $passwordHistoryLength; } /** * @return int */ public function getPasswordHistoryLength() { return $this->passwordHistoryLength; } /** * The minimum allowed password length. A value of 0 means there is no * restriction. Only enforced when password_quality is NUMERIC, * NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. * * @param int $passwordMinimumLength */ public function setPasswordMinimumLength($passwordMinimumLength) { $this->passwordMinimumLength = $passwordMinimumLength; } /** * @return int */ public function getPasswordMinimumLength() { return $this->passwordMinimumLength; } /** * Minimum number of letters required in the password. Only enforced when * password_quality is COMPLEX. * * @param int $passwordMinimumLetters */ public function setPasswordMinimumLetters($passwordMinimumLetters) { $this->passwordMinimumLetters = $passwordMinimumLetters; } /** * @return int */ public function getPasswordMinimumLetters() { return $this->passwordMinimumLetters; } /** * Minimum number of lower case letters required in the password. Only * enforced when password_quality is COMPLEX. * * @param int $passwordMinimumLowerCase */ public function setPasswordMinimumLowerCase($passwordMinimumLowerCase) { $this->passwordMinimumLowerCase = $passwordMinimumLowerCase; } /** * @return int */ public function getPasswordMinimumLowerCase() { return $this->passwordMinimumLowerCase; } /** * Minimum number of non-letter characters (numerical digits or symbols) * required in the password. Only enforced when password_quality is COMPLEX. * * @param int $passwordMinimumNonLetter */ public function setPasswordMinimumNonLetter($passwordMinimumNonLetter) { $this->passwordMinimumNonLetter = $passwordMinimumNonLetter; } /** * @return int */ public function getPasswordMinimumNonLetter() { return $this->passwordMinimumNonLetter; } /** * Minimum number of numerical digits required in the password. Only enforced * when password_quality is COMPLEX. * * @param int $passwordMinimumNumeric */ public function setPasswordMinimumNumeric($passwordMinimumNumeric) { $this->passwordMinimumNumeric = $passwordMinimumNumeric; } /** * @return int */ public function getPasswordMinimumNumeric() { return $this->passwordMinimumNumeric; } /** * Minimum number of symbols required in the password. Only enforced when * password_quality is COMPLEX. * * @param int $passwordMinimumSymbols */ public function setPasswordMinimumSymbols($passwordMinimumSymbols) { $this->passwordMinimumSymbols = $passwordMinimumSymbols; } /** * @return int */ public function getPasswordMinimumSymbols() { return $this->passwordMinimumSymbols; } /** * Minimum number of upper case letters required in the password. Only * enforced when password_quality is COMPLEX. * * @param int $passwordMinimumUpperCase */ public function setPasswordMinimumUpperCase($passwordMinimumUpperCase) { $this->passwordMinimumUpperCase = $passwordMinimumUpperCase; } /** * @return int */ public function getPasswordMinimumUpperCase() { return $this->passwordMinimumUpperCase; } /** * The required password quality. * * Accepted values: PASSWORD_QUALITY_UNSPECIFIED, BIOMETRIC_WEAK, SOMETHING, * NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, COMPLEX, * COMPLEXITY_LOW, COMPLEXITY_MEDIUM, COMPLEXITY_HIGH * * @param self::PASSWORD_QUALITY_* $passwordQuality */ public function setPasswordQuality($passwordQuality) { $this->passwordQuality = $passwordQuality; } /** * @return self::PASSWORD_QUALITY_* */ public function getPasswordQuality() { return $this->passwordQuality; } /** * The scope that the password requirement applies to. * * Accepted values: SCOPE_UNSPECIFIED, SCOPE_DEVICE, SCOPE_PROFILE * * @param self::PASSWORD_SCOPE_* $passwordScope */ public function setPasswordScope($passwordScope) { $this->passwordScope = $passwordScope; } /** * @return self::PASSWORD_SCOPE_* */ public function getPasswordScope() { return $this->passwordScope; } /** * The length of time after a device or work profile is unlocked using a * strong form of authentication (password, PIN, pattern) that it can be * unlocked using any other authentication method (e.g. fingerprint, trust * agents, face). After the specified time period elapses, only strong forms * of authentication can be used to unlock the device or work profile. * * Accepted values: REQUIRE_PASSWORD_UNLOCK_UNSPECIFIED, * USE_DEFAULT_DEVICE_TIMEOUT, REQUIRE_EVERY_DAY * * @param self::REQUIRE_PASSWORD_UNLOCK_* $requirePasswordUnlock */ public function setRequirePasswordUnlock($requirePasswordUnlock) { $this->requirePasswordUnlock = $requirePasswordUnlock; } /** * @return self::REQUIRE_PASSWORD_UNLOCK_* */ public function getRequirePasswordUnlock() { return $this->requirePasswordUnlock; } /** * Controls whether a unified lock is allowed for the device and the work * profile, on devices running Android 9 and above with a work profile. This * can be set only if password_scope is set to SCOPE_PROFILE, the policy will * be rejected otherwise. If user has not set a separate work lock and this * field is set to REQUIRE_SEPARATE_WORK_LOCK, a NonComplianceDetail is * reported with nonComplianceReason set to USER_ACTION. * * Accepted values: UNIFIED_LOCK_SETTINGS_UNSPECIFIED, * ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK, REQUIRE_SEPARATE_WORK_LOCK * * @param self::UNIFIED_LOCK_SETTINGS_* $unifiedLockSettings */ public function setUnifiedLockSettings($unifiedLockSettings) { $this->unifiedLockSettings = $unifiedLockSettings; } /** * @return self::UNIFIED_LOCK_SETTINGS_* */ public function getUnifiedLockSettings() { return $this->unifiedLockSettings; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PasswordRequirements::class, 'Google_Service_AndroidManagement_PasswordRequirements');