hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1054940 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
Date Tue, 04 Jan 2011 09:39:53 GMT
Author: olegk
Date: Tue Jan  4 09:39:53 2011
New Revision: 1054940

URL: http://svn.apache.org/viewvc?rev=1054940&view=rev
Log:
Provide access to the SSL session details

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java?rev=1054940&r1=1054939&r2=1054940&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
Tue Jan  4 09:39:53 2011
@@ -35,6 +35,7 @@ import org.apache.http.params.HttpParams
 import javax.net.ssl.SSLContext;
 import javax.net.ssl.SSLEngine;
 import javax.net.ssl.SSLEngineResult;
+import javax.net.ssl.SSLSession;
 import javax.net.ssl.SSLEngineResult.HandshakeStatus;
 import javax.net.ssl.SSLEngineResult.Status;
 import javax.net.ssl.SSLException;
@@ -111,8 +112,6 @@ public class SSLIOSession implements IOS
     }
 
     /**
-     * @since 4.1
-     *
      * @deprecated
      */
     @Deprecated
@@ -144,6 +143,13 @@ public class SSLIOSession implements IOS
         doHandshake();
     }
 
+    /**
+     * @since 4.1.1
+     */
+    public synchronized SSLSession getSSLSession() {
+        return this.sslEngine.getSession();
+    }
+    
     private void doHandshake() throws SSLException {
         boolean handshaking = true;
 



Mime
View raw message