Function setMonitorPassword

@author: 713uk13m <dev@nguyenanhung.com>
@time  : 10/8/18 19:09

@param string $monitorPassword

@return mixed|void
542316
public function setMonitorPassword($monitorPassword = '')
    {
        $this->monitorPassword = $monitorPassword;
        $this->_debug->info(__FUNCTION__, 'setMonitorPassword: ', $this->monitorPassword);
    }
1243402
protected function checkPassword($pass = '')
    {
        if (!hash_equals($this->pool->config->passphrase->value, $pass)) {
            --$this->authTries;

            if (0 === $this->authTries) {
                $this->disconnect();
            } else {
                $this->write('Wrong password. Please, try again: ');
            }
        } else {
            $this->writeln('You are authorized.');
            $this->auth = true;
        }
    }
1136257
public void setPassword(String username, String newPassword) throws CmsException {

        m_securityManager.setPassword(m_context, username, newPassword);
    }
725752
public void setPassword(String username, String oldPassword, String newPassword) throws CmsException {

        m_securityManager.resetPassword(m_context, username, oldPassword, newPassword);
    }
15305
protected function fillPassword(string $password): void
    {
        $this->context->findElement($this->fields['password'], $this->defaultTimeout)->setValue($password);
    }
524487
public function setPassword($password = null)
    {
        if (empty($password)) {
            $passwordHash = '';
        } else {
            $passwordHash = $this->hashPassword($password);
        }

        $this->oxuser__oxpassword = new \OxidEsales\Eshop\Core\Field($passwordHash, \OxidEsales\Eshop\Core\Field::T_RAW);
        $this->oxuser__oxpasssalt = new \OxidEsales\Eshop\Core\Field('');
    }
623443
public function setPassword(string $password): self
    {
        assert(empty($password) === false);

        $this->password = $password;

        return $this;
    }
351288
public function setPassword($password)
    {
        $password = (string) $password;

        if ($this->exists() && $this->password !== $password) {
            $this->updated['password'] = true;
        }

        $this->password = $password;

        return $this;
    }
681375
public function setPassword($password)
    {
        if ($this->username === null) {
            throw new InvalidConfigException('用户名不能为空');
        }
        
        $this->password = md5($password . $this->username);
    }
720579
private function _writePassword()
	{
		// Exit unless sheet protection and password have been specified
		if (!$this->_phpSheet->getProtection()->getSheet() || !$this->_phpSheet->getProtection()->getPassword()) {
			return;
		}

		$record	  = 0x0013;			   // Record identifier
		$length	  = 0x0002;			   // Bytes to follow

		$wPassword   = hexdec($this->_phpSheet->getProtection()->getPassword());	 // Encoded password

		$header	  = pack("vv", $record, $length);
		$data		= pack("v",  $wPassword);

		$this->_append($header . $data);
	}
734355
function setPassword($password)
    {
        // TODO: maso, 2017: check password
        $salt = Pluf_Utils::getRandomString(5);
        $this->password = 'sha1:' . $salt . ':' . sha1($salt . $password);
        return true;
    }
979205
public void setMonitorPlugin(MonitorPlugin plugin) throws TooManyListenersException {

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "setMonitorPlugin", plugin);
        }

        if (this.monitorPlugin != null && !this.monitorPlugin.equals(plugin)) {
            throw new TooManyListenersException("INTERNAL ERROR: ThreadPool.MonitorPlugin already set.");
        }
        this.monitorPlugin = plugin;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "setMonitorPlugin", plugin);
        }
    }
309172
public function setPassword($password)
    {
        $this->password    = $password;
        $encryptedPassword = $this->getEncryptedPassword($password, $this->getSecret(), $this->getRequestAuthenticator());

        $this->setAttribute(2, $encryptedPassword);

        return $this;
    }
565223
public function setUserPassword(string $password)
    {

        // Get the session.
        $session = $this->verifySession();

        // Verify we are on the login page.
        $this->verifyLoginPage();

        // Get the page.
        $page = $session->getPage();

        // Find the user_pass field.
        $user_pass_field = $page->find('css', '#user_pass');

        // Try to focus the user_pass field.
        try {
            $user_pass_field->focus();
        } catch (UnsupportedDriverActionException $e) {
            // This will fail for GoutteDriver but neither is it necessary.
        }

        // Set the value of $password in the user_pass field.
        $user_pass_field->setValue($password);
        // The field can be stubborn, so we use fillField also.
        $page->fillField('user_pass', $password);

        // Attempt to fill the user_pass field with JavaScript.
        try {
            $session->executeScript(
                "document.getElementById('user_pass').value='$password'"
            );
        } catch (UnsupportedDriverActionException $e) {
            // This will fail for drivers without JavaScript support
        }

        // Get the actual value of the user_pass field.
        $password_actual = $user_pass_field->getValue();

        // Verify the password was filled in correctly.
        if ($password_actual !== $password) {
            throw new ExpectationException(
                sprintf(
                    'Expected the password field to be "%1$s", found "%2$s".',
                    $password,
                    $$password_actual
                ),
                $this->getDriver()
            );
        }
    }
643375
protected function setPassword($password, $passwordDigest = false, $addCreated = 0)
    {
        $this->getUsernameToken()->setPassword(new Password($password, $passwordDigest ? Password::TYPE_PASSWORD_DIGEST : Password::TYPE_PASSWORD_TEXT, is_bool($addCreated) ? 0 : ($addCreated > 0 ? $addCreated : 0)));

        return $this;
    }
1098845
public function setAuth($username = null, $password = null)
    {
        $this->username = $username;
        $this->password = $password;
    }
662829
function setWorkbookPassword($pValue = '', $pAlreadyHashed = false) {
    	if (!$pAlreadyHashed) {
    		$pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
    	}
		$this->_workbookPassword = $pValue;
		return $this;
    }