Code example for SSLServerSocketFactory

Methods: createServerSocket

0
      SSLServerSocket s;
       
      SSLServerSocketFactory sslSrvFact =
        (SSLServerSocketFactory)SSLServerSocketFactory.getDefault();
         
      s = (SSLServerSocket)sslSrvFact.createServerSocket(port);
       
      return s;
    } 
    catch (SocketException scktEx)
    { 
      throw new RuntimeContainedException(scktEx,
                                          "SSL not initialised - check properties"); 
    } 
  } 
 
	public String getProtocolName()
	{ 
		return protocolName__;
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE