FileDocCategorySizeDatePackage
AdminSslClientSocketFactory.javaAPI DocGlassfish v2 API4294Fri May 04 22:33:54 BST 2007com.sun.enterprise.admin.server.core.jmx.ssl

AdminSslClientSocketFactory

public class AdminSslClientSocketFactory extends Object implements Serializable, RMIClientSocketFactory
This 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.
author
Kedar.Mhaswade@sun.com
since
Application Server 8.1

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.SocketcreateSocket(java.lang.String host, int port)
Implementation of the only method in {@link RMIClientSocketFactory}. This method is called for creating the server socket.

return
instance of ServerSocket

        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());
        }