All Examples All Security Examples
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 user name and password for the
proxy server and returns the values entered, or null
if
the cancel button is clicked.
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 the weblogic.T3Admin utility's ping command as a test for your connections.
$ javac -d %CLIENT_CLASSES% *.java
$ java -Dhttps.proxyHost=proxyHost -Dhttps.proxyPort=proxyPort \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.T3Admin https://WebLogicHost:WebLogicSSLPort/ PING 10 10
$ java -Dssl.proxyHost=proxyHost -Dssl.proxyPort=proxyPort \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.T3Admin t3s://WebLogicHost:WebLogicSSLPort/ PING 10 10
$ java -Dhttp.proxyHost=proxyHost -Dhttp.proxyPort=proxyPort \ -Dweblogic.net.proxyAuthenticatorClassName=\ examples.security.proxy.GUIProxyAuthenticator \ weblogic.T3Admin http://WebLogicHost:WebLogicPort/ PING 10 10
Read more about tunnelling in Writing a client application. Read about WebLogic SSL in Using WebLogic SSL.