| 
                                
                                    @@ 858-876 (lines=19) @@
                                 | 
                            
                                                            
                                    | 855 | 
                                     | 
                                    	 * @param Boolean               $is_signed      Whether the signature check has been successful.  | 
                                
                                                            
                                    | 856 | 
                                     | 
                                    	 * @param Jetpack_XMLRPC_Server $xmlrpc_server  (optional) An instance of the server to use instead of instantiating a new one.  | 
                                
                                                            
                                    | 857 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 858 | 
                                     | 
                                    	public function setup_xmlrpc_handlers(  | 
                                
                                                            
                                    | 859 | 
                                     | 
                                    		$request_params,  | 
                                
                                                            
                                    | 860 | 
                                     | 
                                    		$is_active,  | 
                                
                                                            
                                    | 861 | 
                                     | 
                                    		$is_signed,  | 
                                
                                                            
                                    | 862 | 
                                     | 
                                    		Jetpack_XMLRPC_Server $xmlrpc_server = null  | 
                                
                                                            
                                    | 863 | 
                                     | 
                                    	) { | 
                                
                                                            
                                    | 864 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::setup_xmlrpc_handlers' );  | 
                                
                                                            
                                    | 865 | 
                                     | 
                                     | 
                                
                                                            
                                    | 866 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 867 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 868 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 869 | 
                                     | 
                                     | 
                                
                                                            
                                    | 870 | 
                                     | 
                                    		return $this->connection_manager->setup_xmlrpc_handlers(  | 
                                
                                                            
                                    | 871 | 
                                     | 
                                    			$request_params,  | 
                                
                                                            
                                    | 872 | 
                                     | 
                                    			$is_active,  | 
                                
                                                            
                                    | 873 | 
                                     | 
                                    			$is_signed,  | 
                                
                                                            
                                    | 874 | 
                                     | 
                                    			$xmlrpc_server  | 
                                
                                                            
                                    | 875 | 
                                     | 
                                    		);  | 
                                
                                                            
                                    | 876 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 877 | 
                                     | 
                                     | 
                                
                                                            
                                    | 878 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 879 | 
                                     | 
                                    	 * Initialize REST API registration connector.  | 
                                
                                                                                
                                 | 
                                
                                    @@ 5575-5583 (lines=9) @@
                                 | 
                            
                                                            
                                    | 5572 | 
                                     | 
                                    	 * @param string         $password Password string.  | 
                                
                                                            
                                    | 5573 | 
                                     | 
                                    	 * @return \WP_User|mixed Authenticated user or error.  | 
                                
                                                            
                                    | 5574 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 5575 | 
                                     | 
                                    	public function authenticate_jetpack( $user, $username, $password ) { | 
                                
                                                            
                                    | 5576 | 
                                     | 
                                    		_deprecated_function( __METHOD__, 'jetpack-7.7', 'Automattic\\Jetpack\\Connection\\Manager::authenticate_jetpack' );  | 
                                
                                                            
                                    | 5577 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5578 | 
                                     | 
                                    		if ( ! $this->connection_manager ) { | 
                                
                                                            
                                    | 5579 | 
                                     | 
                                    			$this->connection_manager = new Connection_Manager();  | 
                                
                                                            
                                    | 5580 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 5581 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5582 | 
                                     | 
                                    		return $this->connection_manager->authenticate_jetpack( $user, $username, $password );  | 
                                
                                                            
                                    | 5583 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 5584 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5585 | 
                                     | 
                                    	// Authenticates requests from Jetpack server to WP REST API endpoints.  | 
                                
                                                            
                                    | 5586 | 
                                     | 
                                    	// Uses the existing XMLRPC request signing implementation.  |