Code example for SSLSocketFactory

Methods: getSupportedCipherSuites

0
    public Socket createSocket(String s, int i) throws IOException {
        return factory.createSocket(s, i);
    } 
 
    public String[] getDefaultCipherSuites() {
        return factory.getSupportedCipherSuites();
    } 
 
    public String[] getSupportedCipherSuites() {
        return factory.getSupportedCipherSuites();
    } 
} 
 
/** 
 * Trust manager which accepts certificates without any validation 
 * except date validation. 
 */ 
class DummyTrustManager implements X509TrustManager {
 
    public boolean isClientTrusted(X509Certificate[] cert) {
        return true;