public function setAuthSubPrivateKeyFile($file, $passphrase = null,
                                             $useIncludePath = false) {
        $fp = @fopen($file, "r", $useIncludePath);
        if (!$fp) {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.');
        }

        $key = '';
        while (!feof($fp)) {
            $key .= fread($fp, 8192);
        }
        $this->setAuthSubPrivateKey($key, $passphrase);
        fclose($fp);
    }
public function setAuthSubPrivateKeyFile($file, $passphrase = null,
                                             $useIncludePath = false) {
        $fp = @fopen($file, "r", $useIncludePath);
        if (!$fp) {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.');
        }

        $key = '';
        while (!feof($fp)) {
            $key .= fread($fp, 8192);
        }
        $this->setAuthSubPrivateKey($key, $passphrase);
        fclose($fp);
    }
public function setAuthSubPrivateKeyFile ( $ file , $ passphrase = null , $ useIncludePath = false ) { $ fp = @ fopen ( $ file , "r" , $ useIncludePath ) ; if ( ! $ fp ) { require_once 'Zend/Gdata/App/InvalidArgumentException.php' ; throw new Zend_Gdata_App_InvalidArgumentException ( 'Failed to open private key file for AuthSub.' ) ; } $ key = '' ; while ( ! feof ( $ fp ) ) { $ key .= fread ( $ fp , 8192 ) ; } $ this -> setAuthSubPrivateKey ( $ key , $ passphrase ) ; fclose ( $ fp ) ; }
Sets the PEM formatted private key, as read from a file.

This method reads the file and then calls setAuthSubPrivateKey()
with the file contents.

@param string $file The location of the file containing the PEM key
@param string $passphrase The optional private key passphrase
@param bool $useIncludePath Whether to search the include_path
for the file
@return void
Sets the PEM formatted private key as read from a file .