FileDocCategorySizeDatePackage
SSLSocket_RMIServerSocketFactory.javaAPI DocExample1327Thu Nov 08 00:23:24 GMT 2001com.ora.rmibook.chapter18.sockets

SSLSocket_RMIServerSocketFactory

public class SSLSocket_RMIServerSocketFactory extends Object implements RMIServerSocketFactory

Fields Summary
public static String
ANON_CIPHER
public static String[]
CIPHERS
private int
_hashCode
Constructors Summary
Methods Summary
public java.net.ServerSocketcreateServerSocket(int port)


        
        try {
            java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
            SSLServerSocketFactory socketFactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
            SSLServerSocket returnValue = (SSLServerSocket) socketFactory.createServerSocket(port);

            returnValue.setEnabledCipherSuites(CIPHERS);
            returnValue.setNeedClientAuth(false);
            return returnValue;
        } catch (Exception ignored) {
            ignored.printStackTrace();
        }
        return null;
    
public booleanequals(java.lang.Object object)

        if (object instanceof MonitoringSocket_RMIServerSocketFactory) {
            return true;
        }
        return false;
    
public inthashCode()

        return _hashCode;