You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2014/12/09 15:36:54 UTC

svn commit: r1644063 - /httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContextBuilder.java

Author: sebb
Date: Tue Dec  9 14:36:54 2014
New Revision: 1644063

URL: http://svn.apache.org/r1644063
Log:
HTTPCLIENT-1587 Document default Oracle JSSE restriction: SSLContext#init only uses first instance of managers

Modified:
    httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContextBuilder.java

Modified: httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContextBuilder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContextBuilder.java?rev=1644063&r1=1644062&r2=1644063&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContextBuilder.java (original)
+++ httpcomponents/httpclient/branches/4.3.x/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContextBuilder.java Tue Dec  9 14:36:54 2014
@@ -55,6 +55,13 @@ import org.apache.http.annotation.NotThr
 
 /**
  * Builder for {@link SSLContext} instances.
+ * <p>
+ * Please note: the default Oracle JSSE implementation of {@link SSLContext#init(KeyManager[], TrustManager[], SecureRandom)}
+ * accepts multiple key and trust managers, however only only first matching type is ever used.
+ * See for example:
+ * <a href="http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html#init%28javax.net.ssl.KeyManager[],%20javax.net.ssl.TrustManager[],%20java.security.SecureRandom%29">
+ * SSLContext.html#init
+ * </a>
  *
  * @since 4.3
  */