BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.security.SSL
Class SSLSocketFactory

java.lang.Object
  |
  +--javax.net.SocketFactory
        |
        +--weblogic.security.SSL.SSLSocketFactory

public class SSLSocketFactory
extends javax.net.SocketFactory

Instances of this kind of socket factory return SSL sockets.

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
SSLSocketFactory()
           
 
Method Summary
 java.net.Socket createSocket(java.net.InetAddress address, int port)
          Creates a new secure socket to the named host and port.
 java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress clientAddress, int clientPort)
           
 java.net.Socket createSocket(java.lang.String host, int port)
          Creates a new secure socket to the named host and port.
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress clientAddress, int clientPort)
           
 java.net.Socket createSocket(java.lang.String host, int port, int timeout)
           
static javax.net.SocketFactory getDefault()
          Returns the default SSL socket factory.
 java.lang.String[] getDefaultCipherSuites()
          Returns the list of cipher suites that are enabled by default.
protected  weblogic.security.SSL.SSLClientInfo getSSLClientInfo()
           
 java.lang.String[] getSupportedCipherSuites()
          Returns the names of the cipher suites that can be enabled for use on an SSL connection.
 void setSSLClientInfo(weblogic.security.SSL.SSLClientInfo sslCI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLSocketFactory

public SSLSocketFactory()
Method Detail

getDefault

public static javax.net.SocketFactory getDefault()
Returns the default SSL socket factory.

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.net.UnknownHostException,
                                    java.io.IOException
Creates a new secure socket to the named host and port. The host and port refer to the logical destination server. This socket is configured using the socket options established for this factory.

Parameters:
host - the server host
port - the server port
Overrides:
createSocket in class javax.net.SocketFactory

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    int timeout)
                             throws java.net.UnknownHostException,
                                    java.io.IOException

createSocket

public java.net.Socket createSocket(java.net.InetAddress address,
                                    int port)
                             throws java.net.UnknownHostException,
                                    java.io.IOException
Creates a new secure socket to the named host and port. The host and port refer to the logical destination server. This socket is configured using the socket options established for this factory.

Parameters:
address - represents an Internet Protocol (IP) address
port - the server port
Overrides:
createSocket in class javax.net.SocketFactory

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress clientAddress,
                                    int clientPort)

Overrides:
createSocket in class javax.net.SocketFactory

createSocket

public java.net.Socket createSocket(java.net.InetAddress address,
                                    int port,
                                    java.net.InetAddress clientAddress,
                                    int clientPort)

Overrides:
createSocket in class javax.net.SocketFactory

getDefaultCipherSuites

public java.lang.String[] getDefaultCipherSuites()
Returns the list of cipher suites that are enabled by default. Unless a different list is enabled, the SSL connection will use one of these cipher suites. The minimum quality of service for these defaults requires confidentiality protection and server authentication.

Returns:
an array of cipher suites enabled by default

getSupportedCipherSuites

public java.lang.String[] getSupportedCipherSuites()
Returns the names of the cipher suites that can be enabled for use on an SSL connection. Normally, only a subset of these cipher suites will be enabled by default since the list of cipher suites may include cipher suites that do not meet quality of service requirements for those defaults.

Returns:
an array of cipher suite names

setSSLClientInfo

public void setSSLClientInfo(weblogic.security.SSL.SSLClientInfo sslCI)

getSSLClientInfo

protected weblogic.security.SSL.SSLClientInfo getSSLClientInfo()

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.