com.waveset.adapter
Class WSSocketFactory

java.lang.Object
  extended byjavax.net.SocketFactory
      extended bycom.waveset.adapter.WSSocketFactory

Deprecated. as of release 2005Q3M1 SP1 There is no replacement available for this class.

public class WSSocketFactory
extends javax.net.SocketFactory

This is a wrapper class around whatever SSL Socket Facrory the the SSLContext gives us. It is used so that we can provide the certificates used to authenticate the server instead of having to rely on them being stored in the default keystore. This is basically the only way that I could figure out how to do this.


Field Summary
static java.lang.String code_id
          Deprecated.  
 
Constructor Summary
protected WSSocketFactory()
          Deprecated.  
protected WSSocketFactory(javax.net.ssl.SSLSocketFactory sf)
          Deprecated. Create a WSSocketFactory from an existing socket factory.
 
Method Summary
 java.net.Socket createSocket(java.net.InetAddress host, int port)
          Deprecated.  
 java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress clientAddress, int clientPort)
          Deprecated.  
 java.net.Socket createSocket(java.lang.String host, int port)
          Deprecated.  
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress clientHost, int clientPort)
          Deprecated.  
static javax.net.SocketFactory getDefault()
          Deprecated.  
 
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

code_id

public static final java.lang.String code_id
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

WSSocketFactory

protected WSSocketFactory()
                   throws java.security.cert.CertificateException,
                          java.io.FileNotFoundException,
                          java.security.KeyStoreException,
                          java.io.IOException,
                          java.security.NoSuchAlgorithmException,
                          java.security.KeyManagementException,
                          WavesetException
Deprecated. 

WSSocketFactory

protected WSSocketFactory(javax.net.ssl.SSLSocketFactory sf)
Deprecated. 
Create a WSSocketFactory from an existing socket factory. This is mainly used when there is a problem creating a real WSSocketFactory, so we create one using the SSLSocketFactory in case things will work using it instead.

Method Detail

getDefault

public static javax.net.SocketFactory getDefault()
Deprecated. 

createSocket

public java.net.Socket createSocket(java.net.InetAddress host,
                                    int port)
                             throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.net.InetAddress address,
                                    int port,
                                    java.net.InetAddress clientAddress,
                                    int clientPort)
                             throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress clientHost,
                                    int clientPort)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Deprecated. 
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

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