protected function buildAuthorizationHeader(RequestInterface $request, array $customHeaders = [])
    {
        $authHeaderBuilder = new AuthorizationHeaderBuilder($request, $this->key, $this->digest);
        $authHeaderBuilder->setRealm($this->realm);
        $authHeaderBuilder->setId($this->key->getId());
        $authHeaderBuilder->setCustomHeaders($customHeaders);

        return $authHeaderBuilder->getAuthorizationHeader();
    }
protected function buildAuthorizationHeader(RequestInterface $request, array $customHeaders = [])
    {
        $authHeaderBuilder = new AuthorizationHeaderBuilder($request, $this->key, $this->digest);
        $authHeaderBuilder->setRealm($this->realm);
        $authHeaderBuilder->setId($this->key->getId());
        $authHeaderBuilder->setCustomHeaders($customHeaders);

        return $authHeaderBuilder->getAuthorizationHeader();
    }
protected function buildAuthorizationHeader ( RequestInterface $ request , array $ customHeaders = [ ] ) { $ authHeaderBuilder = new AuthorizationHeaderBuilder ( $ request , $ this -> key , $ this -> digest ) ; $ authHeaderBuilder -> setRealm ( $ this -> realm ) ; $ authHeaderBuilder -> setId ( $ this -> key -> getId ( ) ) ; $ authHeaderBuilder -> setCustomHeaders ( $ customHeaders ) ; return $ authHeaderBuilder -> getAuthorizationHeader ( ) ; }
Builds an AuthorizationHeader object.

@param \Psr\Http\Message\RequestInterface $request
The request being signed.
@param string[] $customHeaders
A list of custom header names. The values of the headers will be
extracted from the request.

@return \Acquia\Hmac\AuthorizationHeader
The compiled authorizatio header object.
Builds an AuthorizationHeader object .