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__;
	} 
Contextual code suggestions in your IDE  Get Codota for Java