com.android.tools.lint.checks
Class PrivateKeyDetector

java.lang.Object
  extended by com.android.tools.lint.detector.api.Detector
      extended by com.android.tools.lint.checks.PrivateKeyDetector
All Implemented Interfaces:
com.android.tools.lint.detector.api.Detector.OtherFileScanner

public class PrivateKeyDetector
extends com.android.tools.lint.detector.api.Detector
implements com.android.tools.lint.detector.api.Detector.OtherFileScanner

Looks for packaged private key files.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.android.tools.lint.detector.api.Detector
com.android.tools.lint.detector.api.Detector.ClassScanner, com.android.tools.lint.detector.api.Detector.GradleScanner, com.android.tools.lint.detector.api.Detector.JavaScanner, com.android.tools.lint.detector.api.Detector.OtherFileScanner, com.android.tools.lint.detector.api.Detector.XmlScanner
 
Field Summary
static com.android.tools.lint.detector.api.Issue ISSUE
          Packaged private key files
 
Constructor Summary
PrivateKeyDetector()
          Constructs a new PrivateKeyDetector check
 
Method Summary
 java.util.EnumSet<com.android.tools.lint.detector.api.Scope> getApplicableFiles()
           
 com.android.tools.lint.detector.api.Speed getSpeed()
           
 void run(com.android.tools.lint.detector.api.Context context)
           
 
Methods inherited from class com.android.tools.lint.detector.api.Detector
afterCheckFile, afterCheckLibraryProject, afterCheckProject, appliesTo, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkCall, checkClass, checkInstruction, createJavaVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableElements, getApplicableMethodNames, getApplicableNodeTypes, visitAttribute, visitBuildScript, visitDocument, visitElement, visitElementAfter, visitMethod, visitResourceReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISSUE

public static final com.android.tools.lint.detector.api.Issue ISSUE
Packaged private key files

Constructor Detail

PrivateKeyDetector

public PrivateKeyDetector()
Constructs a new PrivateKeyDetector check

Method Detail

getApplicableFiles

@NonNull
public java.util.EnumSet<com.android.tools.lint.detector.api.Scope> getApplicableFiles()
Specified by:
getApplicableFiles in interface com.android.tools.lint.detector.api.Detector.OtherFileScanner
Overrides:
getApplicableFiles in class com.android.tools.lint.detector.api.Detector

run

public void run(@NonNull
                com.android.tools.lint.detector.api.Context context)
Overrides:
run in class com.android.tools.lint.detector.api.Detector

getSpeed

@NonNull
public com.android.tools.lint.detector.api.Speed getSpeed()
Overrides:
getSpeed in class com.android.tools.lint.detector.api.Detector