You are here

function nusoapclient::setCredentials in Salesforce Suite 5

Same name and namespace in other branches
  1. 5.2 includes/nusoap.php \nusoapclient::setCredentials()

* if authenticating, set user credentials here * *

Parameters

string $username: * @param string $password * @param string $authtype (basic|digest|certificate) * @param array $certRequest (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs) * @access public

File

includes/nusoap.php, line 6944

Class

nusoapclient
nusoapclient higher level class for easy usage.

Code

function setCredentials($username, $password, $authtype = 'basic', $certRequest = []) {
  $this->username = $username;
  $this->password = $password;
  $this->authtype = $authtype;
  $this->certRequest = $certRequest;
}