Basho\Riak\Node\Builder::usingPasswordAuthentication PHP Метод

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.
public usingPasswordAuthentication ( $user, $pass = '' )
$user
$pass
    public function usingPasswordAuthentication($user, $pass = '')
    {
        $this->config->setUser($user);
        $this->config->setPass($pass);
        $this->config->setAuth(true);
        return $this;
    }