protected function getSignatureMethod(&$request)
    {
        $signature_method =
            @$request->getParameter("oauth_signature_method");
        
        if (!$signature_method) {
            // According to chapter 7 ("Accessing Protected Ressources") the signature-method
            // parameter is required, and we can't just fallback to PLAINTEXT
            throw new OAuthException('No signature method parameter. This parameter is required');
        }
        
        if (!in_array($signature_method,
            array_keys($this->signature_methods))
        ) {
            throw new OAuthException(
                "Signature method '$signature_method' not supported " .
                "try one of the following: " .
                implode(", ", array_keys($this->signature_methods))
            );
        }
        
        return $this->signature_methods[ $signature_method ];
    }
protected function getSignatureMethod(&$request)
    {
        $signature_method =
            @$request->getParameter("oauth_signature_method");
        
        if (!$signature_method) {
            // According to chapter 7 ("Accessing Protected Ressources") the signature-method
            // parameter is required, and we can't just fallback to PLAINTEXT
            throw new OAuthException('No signature method parameter. This parameter is required');
        }
        
        if (!in_array($signature_method,
            array_keys($this->signature_methods))
        ) {
            throw new OAuthException(
                "Signature method '$signature_method' not supported " .
                "try one of the following: " .
                implode(", ", array_keys($this->signature_methods))
            );
        }
        
        return $this->signature_methods[ $signature_method ];
    }
protected function getSignatureMethod ( & $ request ) { $ signature_method = @ $ request -> getParameter ( "oauth_signature_method" ) ; if ( ! $ signature_method ) { // According to chapter 7 ("Accessing Protected Ressources") the signature-method // parameter is required, and we can't just fallback to PLAINTEXT throw new OAuthException ( 'No signature method parameter. This parameter is required' ) ; } if ( ! in_array ( $ signature_method , array_keys ( $ this -> signature_methods ) ) ) { throw new OAuthException ( "Signature method '$signature_method' not supported " . "try one of the following: " . implode ( ", " , array_keys ( $ this -> signature_methods ) ) ) ; } return $ this -> signature_methods [ $ signature_method ] ; }
Figure out the signature with some defaults.

@param OAuthRequest $request

@return mixed
@throws OAuthException
Figure out the signature with some defaults .