Repository: qpid-jms
Updated Branches:
  refs/heads/master e1a72b7e6 -> 49b3b1baa


Add some basic docs

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/ffdf4372
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/ffdf4372
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/ffdf4372

Branch: refs/heads/master
Commit: ffdf43727e8a2f5256b0fcee51ad916231eea302
Parents: e1a72b7
Author: Timothy Bish <[email protected]>
Authored: Fri Jan 23 15:59:50 2015 -0500
Committer: Timothy Bish <[email protected]>
Committed: Fri Jan 23 15:59:50 2015 -0500

----------------------------------------------------------------------
 .../qpid/jms/transports/TransportSupport.java   | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/ffdf4372/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportSupport.java
----------------------------------------------------------------------
diff --git 
a/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportSupport.java
 
b/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportSupport.java
index e216c2d..ae68f9f 100644
--- 
a/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportSupport.java
+++ 
b/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/TransportSupport.java
@@ -60,6 +60,17 @@ public class TransportSupport {
         return new SslHandler(createSslEngine(createSslContext(options), 
options));
     }
 
+    /**
+     * Create a new SSLContext using the options specific in the given 
TransportSslOptions
+     * instance.
+     *
+     * @param options
+     *        the configured options used to create the SSLContext.
+     *
+     * @return a new SSLContext instance.
+     *
+     * @throws Exception if an error occurs while creating the context.
+     */
     public static SSLContext createSslContext(TransportSslOptions options) 
throws Exception {
         try {
             SSLContext context = SSLContext.getInstance("TLS");
@@ -80,6 +91,19 @@ public class TransportSupport {
         }
     }
 
+    /**
+     * Create a new SSLEngine instance in client mode from the given 
SSLContext and
+     * TransportSslOptions instances.
+     *
+     * @param context
+     *        the SSLContext to use when creating the engine.
+     * @param options
+     *        the TransportSslOptions to use to configure the new SSLEngine.
+     *
+     * @return a new SSLEngine instance in client mode.
+     *
+     * @throws Exception if an error occurs while creating the new SSLEngine.
+     */
     public static SSLEngine createSslEngine(SSLContext context, 
TransportSslOptions options) throws Exception {
         SSLEngine engine = context.createSSLEngine();
         engine.setEnabledProtocols(options.getEnabledProtocols());


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to