1 package org.objectweb.celtix.bus.transports.https; 2 3 import java.io.IOException ; 4 import java.net.URL ; 5 import java.security.cert.Certificate ; 6 7 import javax.net.ssl.HttpsURLConnection; 8 import javax.net.ssl.SSLPeerUnverifiedException; 9 10 class DummyHttpsConnection extends HttpsURLConnection { 11 12 protected DummyHttpsConnection(URL arg0) { 13 super(arg0); 14 } 15 16 public String getCipherSuite() { 17 return null; 18 } 19 20 21 public void disconnect() { 22 23 } 24 25 @Override 26 public boolean usingProxy() { 27 return false; 29 } 30 31 @Override 32 public void connect() throws IOException { 33 35 } 36 37 @Override 38 public Certificate [] getLocalCertificates() { 39 return null; 41 } 42 43 @Override 44 public Certificate [] getServerCertificates() throws SSLPeerUnverifiedException { 45 return null; 47 } 48 49 } | Popular Tags |