IntroductionIt is important for enterprise customers to be able to set up secure computing environments within their companies. Proxy configuration is an essential part of a secure computing environment. Proxy configuration acts as a security barrier. It ensures that the proxy server monitors all incoming and outgoing information between the Internet and the intranet. This is often an integral part of security enforcement in corporate firewalls within Intranet setups. Enterprise customers who want to use Java Plug-in to deploy JDK 1.1 and Java 2 SDK, Standard Edition v 1.2.2-based applets or JavaBeans on their intranet web pages may also set up various proxy supports. These proxy supports are required for Java Plug-in to work in an intranet environment. Java Plug-in 1.2.2 has full proxy support. This document specifies how proxy support works in intranet environments. How Java Plug-in Obtains Proxy InformationJava Plug-in supports Internet Explorer and Netscape Navigator on various Win32 platforms and Solaris platforms. Because browsers on different platforms store proxy information differently, there is no generic mechanism to obtain proxy information. Instead, you will want to know how each browser stores this information and how Java Plug-in obtains it. Java Plug-in obtains proxy information using one of the following mechanisms: Internet Explorer on Win32: Both IE 3 and IE 4 store proxy information in the same set of keys in the windows registry. Java Plug-in obtains this information directly. Netscape Navigator on Win32: Navigator 3 and Navigator 4 store proxy information differently. Navigator 3 stores proxy information directly in the windows registry, and Java Plug-in can obtain this information directly. Navigator 4 stores proxy information in the user preference file on the local machine. Java Plug-in reads and parses the user preference file to obtain the Navigator 4 proxy information. Netscape Navigator on Solaris: Both Navigator 3 and Navigator 4 store proxy information in a file in the local machine. Java Plug-in reads and parses this file to obtain the proxy information. Java Plug-in obtains proxy information from the browser only once at startup time. If you change the proxy setting after Java Plug-in has started, you have to restart the browser to reflect the proxy changes in Java Plug-in. If you are running Active Desktop in IE 4 with Java Plug-in, you have to logout or restart the machine. Protocol Proxy Support in Java Plug-inJava Plug-in supports http, ftp, gopher and SOCKS v4 protocols through the proxy server. Currently, Java Plug-in does not support https (SSL).Direct ConnectionCertain situations, such as mobile users connecting to the company through a modem, require a direct connection to the intranet environment. Proxies should not be used in these cases. Both Internet Explorer and Netscape Navigator support direct connection in the browser. Java Plug-in recognizes and supports direct connection when you choose it in the browser. Manual Proxy ConfigurationBoth Internet Explorer and Netscape Navigator support manual proxy configuration. Users can specify the proxy server and port for each protocol (http, ftp, gopher, SOCKS....). Users can also specify one proxy server and port for all protocols as well. To minimize the workload of the proxy server, some sites might bypass the proxy server completely when a machine is connecting to another machine inside the intranet environment. To do this, network administrators and users can specify the proxy server bypass list in the browser's setting. Java Plug-in recognizes and supports manual proxy configuration when you choose this option in Internet Explorer and Netscape Navigator. Internet Explorer: Java Plug-in recognizes and supports the proxy
server and port setting associated with the protocol. IE supports various
syntaxes in the proxy server bypass list, as follows:
For example, if you
specify "121.141.23.5;*.eng;http://*.com" in the proxy server bypass
list, then the browser bypasses the proxy whenever one of the following
occurs:
Currently, Java Plug-in supports the first two syntaxes in the proxy server bypass list in IE. IE also supports bypassing the proxy server for local (intranet) addresses without using the proxy server bypass list. Java Plug-in supports this option by bypassing the proxy server if the URL hostname is plain; that is, the hostname has no dot (.). Netscape Navigator: Java Plug-in recognizes and supports the proxy server and port setting associated with the protocol. For example, if you specify ".eng,.sun.com" in the proxy server bypass list in Navigator, it bypasses the proxy whenever the URL hostname ends with ".eng" or ".sun.com". Java Plug-in fully supports this syntax in the proxy server bypass list in Navigator. For more information about manual proxy configuration in your browser,
please consult the user guide for your browser. Automatic Proxy ConfigurationBoth Internet Explorer and Netscape Navigator support automatic proxy configuration. The browser's automatic proxy configuration is set to a particular URL that contains a JavaScript file with .pac or .js extension. This file contains a function called FindProxyForURL that contains the logic to determine which proxy server to use when the browser receives a connection request. When the browser starts up, it recognizes the URL of the JavaScript file and downloads the file to the local machine using direct connection. Then whenever it needs to make a new connection, the browser executes the JavaScript function FindProxyForURL in the file to obtain the proxy information to set up the connection. Java Plug-in recognizes and supports automatic proxy configuration if you choose it in Internet Explorer and Netscape Navigator. Internet Explorer: During startup, Java Plug-in downloads the JavaScript file to the local machine using direct connection. Then whenever it needs to make a new connection, it executes the FindProxyForURL function to obtain the proxy information using the JavaScript engine in IE. If the JavaScript engines for IE 3 and IE 4 are both present in the local machine, it will always use IE 4's JavaScript engine. Netscape Navigator: During startup, Java Plug-in downloads the JavaScript file to the local machine using direct connection. Then whenever it needs to make a new connection, it executes the FindProxyForURL function to obtain the proxy information by using the JavaScript engine in Navigator. There are approximately twelve predefined JavaScript functions which can be called from the JavaScript function FindProxyForURL. Java Plug-in provides its own implementation of these functions to completely emulate the automatic proxy configuration. Here are a few notes regarding this implementation:
Note that executing the function FindProxyForURL always returns proxy information as a string. Java Plug-in extracts the setting in the following way :
For more
information about automatic proxy configuration in your browser, please consult
the user guide for your browser. ConclusionJava Plug-in can be used in an intranet environment. With full proxy support, Java Plug-in recognizes and works seamlessly in your intranet environment with your browser's proxy configuration. | |||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||