summaryrefslogtreecommitdiffstats
path: root/src/org/apache/http
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-02 22:54:22 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-02 22:54:22 -0800
commitdffd5a3100836cece5d90eb827f380a72360dc29 (patch)
treeaea04c65769a1d9e3ca6fde36a7d23bd91dbeb98 /src/org/apache/http
parent4e30c8f9f80e5bd40fd8f018760b01a80b16b8c3 (diff)
downloadexternal_apache-http-dffd5a3100836cece5d90eb827f380a72360dc29.zip
external_apache-http-dffd5a3100836cece5d90eb827f380a72360dc29.tar.gz
external_apache-http-dffd5a3100836cece5d90eb827f380a72360dc29.tar.bz2
auto import from //depot/cupcake/@137055
Diffstat (limited to 'src/org/apache/http')
-rw-r--r--src/org/apache/http/conn/ssl/SSLSocketFactory.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org/apache/http/conn/ssl/SSLSocketFactory.java b/src/org/apache/http/conn/ssl/SSLSocketFactory.java
index 498b43e..1be6c3a 100644
--- a/src/org/apache/http/conn/ssl/SSLSocketFactory.java
+++ b/src/org/apache/http/conn/ssl/SSLSocketFactory.java
@@ -217,6 +217,19 @@ public class SSLSocketFactory implements LayeredSocketFactory {
}
/**
+ * Constructs an HttpClient SSLSocketFactory backed by the given JSSE
+ * SSLSocketFactory.
+ *
+ * @hide
+ */
+ public SSLSocketFactory(javax.net.ssl.SSLSocketFactory socketfactory) {
+ super();
+ this.sslcontext = null;
+ this.socketfactory = socketfactory;
+ this.nameResolver = null;
+ }
+
+ /**
* Creates the default SSL socket factory.
* This constructor is used exclusively to instantiate the factory for
* {@link #getSocketFactory getSocketFactory}.