public class JGDISslRMIServerSocketFactory
extends javax.rmi.ssl.SslRMIServerSocketFactory
| Constructor and Description |
|---|
JGDISslRMIServerSocketFactory(java.lang.String serverHostname,
int serverPort,
java.io.File caTop)
Creates a new
SslRMIServerSocketFactory with
the default SSL socket configuration. |
JGDISslRMIServerSocketFactory(java.lang.String serverHostname,
int serverPort,
java.io.File caTop,
java.lang.String[] enabledCipherSuites,
java.lang.String[] enabledProtocols,
boolean needClientAuth)
Creates a new
SslRMIServerSocketFactory with
the specified SSL socket configuration. |
| Modifier and Type | Method and Description |
|---|---|
java.net.ServerSocket |
createServerSocket(int port)
Creates a server socket that accepts SSL connections
configured according to this factory's SSL socket configuration
parameters.
|
public JGDISslRMIServerSocketFactory(java.lang.String serverHostname,
int serverPort,
java.io.File caTop)
Creates a new SslRMIServerSocketFactory with
the default SSL socket configuration.
SSL connections accepted by server sockets created by this factory have the default cipher suites and protocol versions enabled and do not require client authentication.
caTop - the catop directory if the clusterpublic JGDISslRMIServerSocketFactory(java.lang.String serverHostname,
int serverPort,
java.io.File caTop,
java.lang.String[] enabledCipherSuites,
java.lang.String[] enabledProtocols,
boolean needClientAuth)
throws java.lang.IllegalArgumentException
Creates a new SslRMIServerSocketFactory with
the specified SSL socket configuration.
caTop - the catop directory if the clusterenabledCipherSuites - names of all the cipher suites to
enable on SSL connections accepted by server sockets created by
this factory, or null to use the cipher suites
that are enabled by defaultenabledProtocols - names of all the protocol versions to
enable on SSL connections accepted by server sockets created by
this factory, or null to use the protocol versions
that are enabled by defaultneedClientAuth - true to require client
authentication on SSL connections accepted by server sockets
created by this factory; false to not require
client authenticationjava.lang.IllegalArgumentException - when one or more of the cipher
suites named by the enabledCipherSuites parameter is
not supported, when one or more of the protocols named by the
enabledProtocols parameter is not supported or when
a problem is encountered while trying to check if the supplied
cipher suites and protocols to be enabled are supported.SSLSocket.setEnabledCipherSuites(java.lang.String[]),
SSLSocket.setEnabledProtocols(java.lang.String[]),
SSLSocket.setNeedClientAuth(boolean)public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters.
createServerSocket in interface java.rmi.server.RMIServerSocketFactorycreateServerSocket in class javax.rmi.ssl.SslRMIServerSocketFactoryjava.io.IOException - if the socket can not be createdCopyright © 2007 Sun Microsystems, Inc. All rights reserved.