protected function getAuthHeaderValue()
    {
        $value = "";
        if (isset($this->credentials['username']) && isset($this->credentials['password'])){
            $value = $this->credentials['username'].":".$this->credentials['password'];
            $value = base64_encode($value);
        }
        return static::$_AUTH_TYPE." ".$value;
    }