Oracle

weblogic.wtc.jatmi
Class TuxedoSSLSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by weblogic.security.SSL.SSLSocketFactory
          extended by weblogic.wtc.jatmi.TuxedoSSLSocketFactory

public final class TuxedoSSLSocketFactory
extends SSLSocketFactory

A socket factory for manufacturing SSLSockets and SSLServerSockets


Field Summary
static String[] CIPHER0
           
static String[] CIPHER112
           
static String[] CIPHER128
           
static String[] CIPHER256
           
static String[] CIPHER56
           
 
Fields inherited from class weblogic.security.SSL.SSLSocketFactory
defFactory, jsseFactory
 
Constructor Summary
TuxedoSSLSocketFactory(String ksType, String iks, String iksp, String ika, String ikp, String trustKsType, String tks, String tksp)
           
 
Method Summary
 ServerSocket createServerSocket(int port, int backlog, InetAddress address)
          Create a new server SSL socket.
 Socket createSocket(InetAddress host, int port)
          Create a new outbound SSL socket observing channel binding requirements on the server.
 Socket createSocket(Socket socket, String host, int port, boolean autoclose)
          Create a new outbound SSL socket overlaid on an existing socket.
static String[] getCiphers(int minEncryptBits, int maxEncryptBits)
           
 String[] getDefaultCipherSuites()
          Returns the list of cipher suites which are enabled by default.
 String[] getSupportedCipherSuites()
          Returns the names of the cipher suites which could be enabled for use on an SSL connection.
 
Methods inherited from class weblogic.security.SSL.SSLSocketFactory
createSocket, createSocket, createSocket, getDefault, getDefaultJSSE
 
Methods inherited from class javax.net.SocketFactory
createSocket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CIPHER0

public static final String[] CIPHER0

CIPHER56

public static final String[] CIPHER56

CIPHER112

public static final String[] CIPHER112

CIPHER128

public static final String[] CIPHER128

CIPHER256

public static final String[] CIPHER256
Constructor Detail

TuxedoSSLSocketFactory

public TuxedoSSLSocketFactory(String ksType,
                              String iks,
                              String iksp,
                              String ika,
                              String ikp,
                              String trustKsType,
                              String tks,
                              String tksp)
Method Detail

createSocket

public Socket createSocket(InetAddress host,
                           int port)
                    throws IOException
Create a new outbound SSL socket observing channel binding requirements on the server.

Overrides:
createSocket in class SSLSocketFactory
Parameters:
host - the host to connect to
port - the port to connect to
Returns:
a new Socket
Throws:
IOException
UnknownHostException - if the host is not known

getDefaultCipherSuites

public String[] getDefaultCipherSuites()
Description copied from class: SSLSocketFactory
Returns the list of cipher suites which are enabled by default. Unless a different list is enabled, handshaking on an SSL connection will use one of these cipher suites. The minimum quality of service for these defaults requires confidentiality protection and server authentication.

Overrides:
getDefaultCipherSuites in class SSLSocketFactory
Returns:
array of the cipher suites enabled by default
See Also:
SSLSocketFactory.getSupportedCipherSuites()

getSupportedCipherSuites

public String[] getSupportedCipherSuites()
Description copied from class: SSLSocketFactory
Returns the names of the cipher suites which could be enabled for use on an SSL connection. Normally, only a subset of these will actually be enabled by default, since this list may include cipher suites which do not meet quality of service requirements for those defaults. Such cipher suites are useful in specialized applications.

Overrides:
getSupportedCipherSuites in class SSLSocketFactory
Returns:
an array of cipher suite names

createServerSocket

public ServerSocket createServerSocket(int port,
                                       int backlog,
                                       InetAddress address)
                                throws IOException
Create a new server SSL socket.

Parameters:
port - the port on which to listen
backlog - how many connections may be pending before the system should start rejecting new requests
address - the address of the network interface through which connections will be accepted
Returns:
a new ServerSocket
Throws:
IOException - if an I/O error occurs when creating the socket

createSocket

public Socket createSocket(Socket socket,
                           String host,
                           int port,
                           boolean autoclose)
                    throws IOException
Create a new outbound SSL socket overlaid on an existing socket.

Overrides:
createSocket in class SSLSocketFactory
Parameters:
host - the host to connect to
port - the port to connect to
socket - the existing socket
autoclose - close the underlying socket when this socket is closed
Returns:
a new Socket
Throws:
IOException
UnknownHostException - if the host is not known

getCiphers

public static String[] getCiphers(int minEncryptBits,
                                  int maxEncryptBits)

Documentation is available at
http://edocs.bea.com/wls/docs103
Copyright 2008 Oracle