WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.security.sslclient
Class SSLClient

java.lang.Object
  |
  +--examples.security.sslclient.SSLClient

public class SSLClient
extends java.lang.Object

SSLClient is a short example of how to use the SSL library of WebLogic to make outgoing SSL connections. It shows both how to do this from a stand-alone application as well as from within WebLogic (in a Servlet).

Be carefull to notice that the WebLogic Server, when making an outgoing SSL connection, will use that instance of the server's certificate. When communicating to either the same or another WebLogic Server with two-way SSL, the originating server's certificate will be verified against the client root CA list in the receiving WebLogic Server.

Author:
Copyright (c) 1999-2002 by BEA Systems, Inc. All Rights Reserved.

Constructor Summary
SSLClient()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 void SSLClient()
           
static void wlsURLConnect(java.lang.String host, java.lang.String port, java.lang.String sport, java.lang.String query, java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLClient

public SSLClient()
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.io.IOException

SSLClient

public void SSLClient()

wlsURLConnect

public static void wlsURLConnect(java.lang.String host,
                                 java.lang.String port,
                                 java.lang.String sport,
                                 java.lang.String query,
                                 java.io.OutputStream out)

Documentation is available at
http://e-docs.bea.com/wls/docs70

Copyright © 2002 BEA Systems, Inc. All Rights Reserved.