setPass() public method

public setPass ( string $pass )
$pass string
コード例 #1
0
ファイル: Builder.php プロジェクト: jjulien/riak-php-client
 /**
  * usingPasswordAuthentication
  *
  * Build nodes with password authentication
  *
  * User authentication and access rules are only available in Riak versions 2 and above. To use this feature, TSL
  * is required to communicate with your Riak nodes.
  *
  * @param $user
  * @param $pass
  * @return $this
  */
 public function usingPasswordAuthentication($user, $pass = '')
 {
     $this->config->setUser($user);
     $this->config->setPass($pass);
     $this->config->setAuth(true);
     return $this;
 }