Code example for SSLServerSocket

Methods: setEnabledCipherSuitessetNeedClientAuthsetUseClientModesetWantClientAuth

0
	 * {@inheritDoc} 
	 */ 
	@Override 
	protected ServerSocket createServerSocket() throws IOException {
		SSLServerSocket serverSocket = (SSLServerSocket) SSL.createServerSocket();
		serverSocket.setNeedClientAuth(false);
		serverSocket.setUseClientMode(false);
		serverSocket.setWantClientAuth(false);
 
		serverSocket.setEnabledCipherSuites(new String[] {
		    "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", // We want PFS (DHE) 
		    // "TLS_RSA_WITH_AES_256_CBC_SHA", 
		}); 
 
		return serverSocket;
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java