Class WeakTrustManagerDetector

  • All Implemented Interfaces:
    edu.umd.cs.findbugs.Detector, edu.umd.cs.findbugs.Priorities

    public class WeakTrustManagerDetector
    extends Object
    implements edu.umd.cs.findbugs.Detector

    The first reflex for developer that encounter web services that have unsigned certificate is often to trust all certificates.

    To trust everything, the standard API for SSL communication requires the implementation of a child interface of "javax.net.ssl.TrustManager" (marker interface). Commonly, X509TrustManager is being used.

    Sample of code being used
    See Also:
    TrustManager, X509TrustManager
    • Constructor Detail

      • WeakTrustManagerDetector

        public WeakTrustManagerDetector​(edu.umd.cs.findbugs.BugReporter bugReporter)
    • Method Detail

      • visitClassContext

        public void visitClassContext​(edu.umd.cs.findbugs.ba.ClassContext classContext)
        Specified by:
        visitClassContext in interface edu.umd.cs.findbugs.Detector
      • report

        public void report()
        Specified by:
        report in interface edu.umd.cs.findbugs.Detector