This is an automated email from the ASF dual-hosted git repository. git-site-role pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/mina-site.git
The following commit(s) were added to refs/heads/asf-site by this push: new 050914f01 Updated site from master (c3e389827e6f665b373715dbddae1952bfb09068) 050914f01 is described below commit 050914f01a5ddbd00676132940fdedcb47fb3ea8 Author: jenkins <bui...@apache.org> AuthorDate: Tue Jun 27 16:19:03 2023 +0000 Updated site from master (c3e389827e6f665b373715dbddae1952bfb09068) --- content/mina-project/2.2-vs-2.1.html | 9 ++++++++- content/sitemap.xml | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/content/mina-project/2.2-vs-2.1.html b/content/mina-project/2.2-vs-2.1.html index b15d41d58..1b1ce77cd 100644 --- a/content/mina-project/2.2-vs-2.1.html +++ b/content/mina-project/2.2-vs-2.1.html @@ -157,7 +157,14 @@ <span style="color:#666">}</span> </code></pre></div><p>As you can see in the code above, we check if the message is a <strong>startTLS</strong> response, and if so, we bypass the <strong>SSLFilter</strong>, which leads to the message to be sent in clear text.</p> -<h2 id="why-is-it-api-incompatible-">Why is it API incompatible ?</h2> +<h2 id="addition-of-the-iosessionisserver-method">Addition of the IoSession.isServer() method</h2> +<p>This method tells if the underlaying service is an <em>IoAcceptor</em> or not. It’s useful to quickly find out if we have to set the <strong>Tls</strong> flag to client or server when initializing the <strong>SslEngine</strong> instance, we also use it for the <strong>SslFilter</strong> logs.</p> +<h2 id="removal-of-the-sslfiltergetsslsession-method">Removal of the SslFilter.getSslSession() method</h2> +<p>This method is not used. Would you like to get the <strong>SSLSession</strong> instance, it’s a matter of calling the <em>IoSession.getAttribute()</em> method with <strong>SslFilter.SSL_SECURED</strong> as a parameter:</p> +<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#666">.</span><span style="color:#666">.</span><span style="color:#666">.</span> + SSLSession sslSession <span style="color:#666">=</span> SSLSession<span style="color:#666">.</span><span style="color:#b44">class</span><span style="color:#666">.</span><span style="color:#b44">cast</span><span style="color:#666">(</span>getAttribute<span style="color:#666">(</span>SslFilter<span style="color:#666">.</span><span style="color:#b44">SSL_SECURED</span><span style="color:#666">)</span><span style="color:#666">)</span><span style="color:#666">;</span> +<span style="color:#666">.</span><span style="color:#666">.</span><span style="color:#666">.</span> +</code></pre></div><h2 id="why-is-it-api-incompatible-">Why is it API incompatible ?</h2> <p>The removal of the <strong>SslFilter.DISABLE_ENCRYPTION_ONCE</strong> attribute makes it impossible for application that leverage the <strong>startTLS</strong> command to work, without some code change.</p> <h2 id="migration">Migration</h2> <p>This is pretty straightforward :</p> diff --git a/content/sitemap.xml b/content/sitemap.xml index 00947fe7f..8fbad6836 100644 --- a/content/sitemap.xml +++ b/content/sitemap.xml @@ -834,7 +834,7 @@ <url> <loc>https://mina.apache.org/mina-project/2.2-vs-2.1.html</loc> - <lastmod>2022-12-01T16:57:33-05:00</lastmod> + <lastmod>2023-06-27T18:14:01+02:00</lastmod> </url> <url> @@ -869,7 +869,7 @@ <url> <loc>https://mina.apache.org/mina-project.html</loc> - <lastmod>2023-06-05T05:51:30+02:00</lastmod> + <lastmod>2023-06-27T18:14:01+02:00</lastmod> </url> <url>