Class GoogleApiKeyDetector

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

    public class GoogleApiKeyDetector
    extends Object
    implements edu.umd.cs.findbugs.Detector
    GoogleApi provide code sample to sign URL using provided API key. The management of the key is left to the developer. Developers might simply copy-paste sample of code without loading the key from a configuration file.

    If too much false positive are rise, the signature will be more precise. The assumption is that the code was copy and left unchanged except the key.

    Ref: http://gmaps-samples.googlecode.com/svn/trunk/urlsigning/UrlSigner.java

    • Constructor Detail

      • GoogleApiKeyDetector

        public GoogleApiKeyDetector​(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