The following code lists the supported cipher suites by Java SE 8:
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Arrays;
You can't edit the cipher suites directly on factory.
However you can choose what exact ciphers to support (from the available) on the SSLSocket
SSLSocketFactory factory = HttpsURLConnection.getDefaultSSLSocketFactory();
String[] cipherSuites = factory.getSupportedCipherSuites();
SSLSocket sslSocket = (SSLSocket) factory.createSocket();
// Choose the exact ciphers you need from the available
String[] filteredCipherSuites = cipherSuites;
sslSocket.setEnabledCipherSuites(filteredCipherSuites);