Do not use APIs from the sun.security.x509 package

Depending on the target operating system, the classes and interfaces in the sun.security.x509 and sun.security.util packages might be replaced by classes and interfaces in the com.ibm.security.x509 and com.ibm.security.util packages.

An automated fix would change the package names to use the IBM Java Runtime Environment provided packages. The rule will detect fully qualified names in import statements and in the body of the Java code.

The rule detects package imports such as

import sun.security.x509.*;
import sun.security.util.*;

An automated fix changes them to use the com.ibm.security packages.

import com.ibm.security.x509.*;
import com.ibm.security.util.*;

You may still have changes to make in your code depending on which APIs you use and how you use them. Use the Eclipse Java problem markers to help you work through additional changes needed because of the differences between the sun.security.x509 APIs and the com.ibm.security.x509 APIs. Some examples of the differences include:

For additional information related to this rule, see: