This is an automated email from the ASF dual-hosted git repository. elecharny pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mina-site.git
The following commit(s) were added to refs/heads/master by this push: new c3e389827 Updated the 2.1->2.2 migration page c3e389827 is described below commit c3e389827e6f665b373715dbddae1952bfb09068 Author: emmanuel lecharny <elecha...@apache.org> AuthorDate: Tue Jun 27 18:14:01 2023 +0200 Updated the 2.1->2.2 migration page --- source/mina-project/2.2-vs-2.1.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/mina-project/2.2-vs-2.1.md b/source/mina-project/2.2-vs-2.1.md index d5deb8013..be4b49b33 100644 --- a/source/mina-project/2.2-vs-2.1.md +++ b/source/mina-project/2.2-vs-2.1.md @@ -55,6 +55,20 @@ public class StartTlsFilter extends IoFilterAdapter As you can see in the code above, we check if the message is a **startTLS** response, and if so, we bypass the **SSLFilter**, which leads to the message to be sent in clear text. +## Addition of the IoSession.isServer() method + +This method tells if the underlaying service is an _IoAcceptor_ or not. It's useful to quickly find out if we have to set the **Tls** flag to client or server when initializing the **SslEngine** instance, we also use it for the **SslFilter** logs. + +## Removal of the SslFilter.getSslSession() method + +This method is not used. Would you like to get the **SSLSession** instance, it's a matter of calling the _IoSession.getAttribute()_ method with **SslFilter.SSL_SECURED** as a parameter: + +```java +... + SSLSession sslSession = SSLSession.class.cast(getAttribute(SslFilter.SSL_SECURED)); +... +``` + ## Why is it API incompatible ? The removal of the **SslFilter.DISABLE_ENCRYPTION_ONCE** attribute makes it impossible for application that leverage the **startTLS** command to work, without some code change.