public function setAuthentication($uname = '', $pass = '', $type = 'basic')
    {
        $this->authentication['uname'] = $uname;
        $this->authentication['pass'] = $pass;
        $this->authentication['type'] = $type;
    }