AdminSslClientSocketFactorypublic class AdminSslClientSocketFactory extends Object implements Serializable, RMIClientSocketFactoryThis is the custom RMI client socket factory that uses the same keystore, truststore,
certificate databases all the time. This factory will be used to create
the client side sockets when rmi connector server is configured to use SSL. Please
read the package.html.
Since this class is not standard, it is not used. |
Fields Summary |
---|
private final com.sun.enterprise.config.serverbeans.Ssl | sslc |
Constructors Summary |
---|
public AdminSslClientSocketFactory(com.sun.enterprise.config.serverbeans.Ssl sslc)
if (sslc == null)
throw new IllegalArgumentException("Internal: null ssl configuration");
this.sslc = sslc;
|
Methods Summary |
---|
public java.net.Socket | createSocket(java.lang.String host, int port)Implementation of the only method in {@link RMIClientSocketFactory}. This
method is called for creating the server socket.
try {
final SSLSocketFactory f = (SSLSocketFactory)SSLSocketFactory.getDefault();
final SSLSocket s = (SSLSocket) f.createSocket(host, port);
return ( s );
}
catch (final Exception e) {
throw new IOException (e.getMessage());
}
|
|