|
WebLogic Server 6.0 Code Examples, BEA Systems, Inc. |
See:
Description
Class Summary | |
GUIProxyAuthenticator | This example class provides a graphical implementation of the
weblogic.net.ProxyAuthenticator interface. |
This example is a graphical interface that implements the weblogic.common.proxyAuthenticator interface. An implementation of this interface is required to allow an application to provide user authentication information when tunneling WebLogic HTTP and SSL protocols through a proxy server that requires user authentication.
The GUIProxyAuthenticator class prompts for the username and password for the
proxy server and returns the values entered, or null
if
the cancel button is clicked.
Perform the following steps in order to build and run the examples:
To test the example, you need a running proxy server and a running WebLogic Server. For each of these servers you need the name of the computer, and the port the server is listening on. You can use the weblogic.Admin utility's Ping command as a test for your connections.
javac -d %CLIENT_CLASSES% GUIProxyAuthenticator.java
java -Dhttps.proxyHost=proxyHost -Dhttps.proxyPort=proxyPort \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.Admin -url https://WebLogicHost:WebLogicSSLPort/ PING 10 10
For example:
java -Dhttps.proxyHost=Blotto -Dhttps.proxyPort=101 \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.Admin -url https://206.189.198.30:7002/ PING 10 10
java -Dssl.proxyHost=proxyHost -Dssl.proxyPort=proxyPort \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.Admin -url t3s://WebLogicHost:WebLogicSSLPort/ PING 10 10
For example:
java -Dssl.proxyHost=Blotto -Dssl.proxyPort=101 \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.Admin -url t3s://206.189.198.30:7002/ PING 10 10
java -Dhttp.proxyHost=proxyHost -Dhttp.proxyPort=proxyPort \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.Admin -url http://WebLogicHost:WebLogicPort/ PING 10 10
For example:
java -Dhttp.proxyHost=Blotto -Dhttp.proxyPort=101 \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.Admin -url http://206.189.198.30:7001/ PING 10 10
Read more about:
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |