This singleton object turns on "certpath" debug logging (originally based off the "java.security.debug" debug flag),
and swaps out references to internal Sun JSSE classes to ensure that the new debug logging settings are honored, and
that debugging can be turned on dynamically, even after static class block initialization has been completed. It
does this using some {{sun.misc.Unsafe}} black magic.
Note that currently the only functionality is to turn debug output ON, with the assumption that all output will
go to an appropriately configured logger that can ignore calls to it. There is no "off" method.
This singleton object turns on "certpath" debug logging (originally based off the "java.security.debug" debug flag), and swaps out references to internal Sun JSSE classes to ensure that the new debug logging settings are honored, and that debugging can be turned on dynamically, even after static class block initialization has been completed. It does this using some {{sun.misc.Unsafe}} black magic.
Note that currently the only functionality is to turn debug output ON, with the assumption that all output will go to an appropriately configured logger that can ignore calls to it. There is no "off" method.