edu.stanford.peer.secrmi
Class SSLRMIServerSocketFactory
java.lang.Object
|
+--edu.stanford.peer.secrmi.SSLRMIServerSocketFactory
- All Implemented Interfaces:
- java.rmi.server.RMIServerSocketFactory
- public class SSLRMIServerSocketFactory
- extends java.lang.Object
- implements java.rmi.server.RMIServerSocketFactory
The SSLRMIServerSocketFactory class
is a socket factory class that produces SSL sockets.
Constructor Summary |
SSLRMIServerSocketFactory(java.security.KeyStore keyStore,
char[] password)
Creates a SSLRMIServerSocketFactory with the given KeyStore and password. |
Method Summary |
java.net.ServerSocket |
createServerSocket(int port)
Create a SSL server socket. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLRMIServerSocketFactory
public SSLRMIServerSocketFactory(java.security.KeyStore keyStore,
char[] password)
throws java.security.NoSuchProviderException,
java.security.NoSuchAlgorithmException,
java.security.KeyStoreException,
java.security.cert.CertificateException,
java.security.UnrecoverableKeyException,
java.security.KeyManagementException
- Creates a SSLRMIServerSocketFactory with the given KeyStore and password.
- Parameters:
keyStore
- the key storepassword
- the password to access the private key in the key store
createServerSocket
public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
- Create a SSL server socket.
- Specified by:
createServerSocket
in interface java.rmi.server.RMIServerSocketFactory
- Parameters:
port
- port number