Use com.ibm.jsse2 instead of com.sun.net.ssl.internal.ssl

MSAL

Do not use the com.sun.net.ssl.internal.ssl.Provider class.

org.openrewrite.java.migrate.JREDoNotUseSunNetSslInternalSslProvider
mod run . --recipe=org.openrewrite.java.migrate.JREDoNotUseSunNetSslInternalSslProvider

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change type Provider to IBMJSSEProvider2
  2. Change type com.sun.net.ssl.internal.ssl.Debug to com.ibm.jsse2.Debug
  3. Change type com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl to com.ibm.jsse2.SSLServerSocketFactoryImpl
  4. Change type com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl to com.ibm.jsse2.SSLSocketFactoryImpl