diff options
author | Parménides GV <parmegv@sdf.org> | 2013-06-12 18:51:44 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2013-06-12 18:51:44 +0200 |
commit | 2f69eb6eb9aa3993354e8de295df68558ab7b71e (patch) | |
tree | 510709ab0f2b3b3b0d2292717a868f55d8d54d0e | |
parent | 6c90e0043ec68254c15562fd12a707f5e45f47e7 (diff) |
Removed some unnecessary libraries.
I've also removed some unnecessary comments from LeapHttpClient.
-rw-r--r-- | libs/bcprov-ext-jdk15on-146.jar | bin | 1825975 -> 0 bytes | |||
-rw-r--r-- | libs/jboss-common-client.jar | bin | 399031 -> 0 bytes | |||
-rw-r--r-- | src/se/leap/leapclient/LeapHttpClient.java | 10 |
3 files changed, 1 insertions, 9 deletions
diff --git a/libs/bcprov-ext-jdk15on-146.jar b/libs/bcprov-ext-jdk15on-146.jar Binary files differdeleted file mode 100644 index 7d8a22e4..00000000 --- a/libs/bcprov-ext-jdk15on-146.jar +++ /dev/null diff --git a/libs/jboss-common-client.jar b/libs/jboss-common-client.jar Binary files differdeleted file mode 100644 index af5fb004..00000000 --- a/libs/jboss-common-client.jar +++ /dev/null diff --git a/src/se/leap/leapclient/LeapHttpClient.java b/src/se/leap/leapclient/LeapHttpClient.java index 3eeebe95..00ee15e9 100644 --- a/src/se/leap/leapclient/LeapHttpClient.java +++ b/src/se/leap/leapclient/LeapHttpClient.java @@ -31,23 +31,15 @@ public class LeapHttpClient extends DefaultHttpClient { protected ClientConnectionManager createClientConnectionManager() { SchemeRegistry registry = new SchemeRegistry(); registry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80)); - // Register for port 443 our SSLSocketFactory with our keystore - // to the ConnectionManager registry.register(new Scheme("https", newSslSocketFactory(), 443)); + return new SingleClientConnManager(getParams(), registry); } private SSLSocketFactory newSslSocketFactory() { try { - // Get an instance of the Bouncy Castle KeyStore format KeyStore trusted = ConfigHelper.getKeystore(); - - // Pass the keystore to the SSLSocketFactory. The factory is responsible - // for the verification of the server certificate. SSLSocketFactory sf = new SSLSocketFactory(trusted); - - // Hostname verification from certificate - // http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d4e506 sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); return sf; |