diff --git a/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java b/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java index e380902e5..b2ea581c2 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java @@ -288,19 +288,23 @@ public class ConnectionConfiguration implements Cloneable { } /** - * Gets the custom SSLContext for SSL sockets. This is null by default. + * Gets the custom SSLContext previously set with {@link #setCustomSSLContext(SSLContext)} for + * SSL sockets. This is null by default. * - * @return the SSLContext previously set with setCustomSSLContext() or null. + * @return the custom SSLContext or null. */ public SSLContext getCustomSSLContext() { return this.customSSLContext; } /** - * Sets a custom SSLContext for creating SSL sockets. A custom Context causes all other - * SSL/TLS realted settings to be ignored. + * Sets a custom SSLContext for creating SSL sockets. + *

+ * For more information on how to create a SSLContext see Java Secure Socket Extension (JSEE) Reference Guide: Creating Your Own X509TrustManager * - * @param context the custom SSLContext for new sockets; null to reset default behavior. + * @param context the custom SSLContext for new sockets */ public void setCustomSSLContext(SSLContext context) { this.customSSLContext = context;