edu.stanford.peer.secrmi
Class SSLRMIClientSocketFactory

java.lang.Object
  |
  +--edu.stanford.peer.secrmi.SSLRMIClientSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIClientSocketFactory, java.io.Serializable

public class SSLRMIClientSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIClientSocketFactory, java.io.Serializable

The SSLRMIClientSocketFactory class is Serializable, implements RMIClientSocketFactory, and produces SSL sockets

See Also:
Serialized Form

Constructor Summary
SSLRMIClientSocketFactory(java.security.KeyStore trustKS)
          Create a SSLRMIClientSocketFactory, given a trust key store
 
Method Summary
 java.net.Socket createSocket(java.lang.String host, int port)
          Create a SSL socket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLRMIClientSocketFactory

public SSLRMIClientSocketFactory(java.security.KeyStore trustKS)
                          throws java.security.NoSuchProviderException,
                                 java.security.NoSuchAlgorithmException,
                                 java.security.KeyStoreException,
                                 java.security.cert.CertificateException,
                                 java.security.UnrecoverableKeyException,
                                 java.security.KeyManagementException
Create a SSLRMIClientSocketFactory, given a trust key store
Parameters:
trustKS - the trust ket store
Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException
Create a SSL socket
Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
Parameters:
host - host name
port - port number