private function getAuth()
{
// If the basic auth details are set, decode and return them.
if ($this->hasParam(self::authParam)) {
$auth = $this->getSplitAuth();
if (count($auth) === 2) {
return $this->getDecodedAuth($auth[1]);
}
}
// If the basic auth details are not set return a null user and password.
return $this->getNullAuth();
}