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

This rule flags the use of com.sun.net.ssl.internal.ssl.Provider class. This class should not be used. Instead use com.ibm.jsse2.IBMJSSEProvider2 .

This rule also flags the use of the following classes from the com.sun.net.ssl.internal.ssl package. These classes should not be used. Instead use classes from the com.ibm.jsse2 package.

The automated fix will make these changes:

Copy the custom configuration to your application build file to enable the fix automation.

For example, code fragments such as

import com.sun.net.ssl.internal.ssl.Provider;
import com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl;
    
if (myProvider instanceof com.sun.net.ssl.internal.ssl.Provider)

are changed to

import com.ibm.jsse2.IBMJSSEProvider2;
import com.ibm.jsse2.SSLSocketFactoryImpl;
    
if (myProvider instanceof com.ibm.jsse2.IBMJSSEProvider2)

You may still have a number of changes to make depending on how the com.sun.net.ssl.internal.ssl.Provider is used. Use the Eclipse Java problem markers to help you work through additional changes needed because of the differences between com.sun.net.ssl.internal.ssl.Provider and com.ibm.jsse2.IBMJSSEProvider2 . In particular some differences are:

For additional information related to this rule, see: