Package org.sonar.java.checks
Class AbstractHashAlgorithmChecker
java.lang.Object
org.sonar.java.ast.visitors.SubscriptionVisitor
org.sonar.plugins.java.api.IssuableSubscriptionVisitor
org.sonar.java.checks.methods.AbstractMethodDetection
org.sonar.java.checks.AbstractHashAlgorithmChecker
- All Implemented Interfaces:
JavaCheck,JavaFileScanner
- Direct Known Subclasses:
DataHashingCheck
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Map<String, AbstractHashAlgorithmChecker.InsecureAlgorithm> static final Stringstatic final StringFields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringgetMessageForAlgorithm(String algorithmName) getMessageForClass(String className) protected MethodMatchersprotected voidonConstructorFound(NewClassTree newClassTree) protected voidMethods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
nodesToVisit, onMethodReferenceFound, visitNodeMethods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, leaveFile, reportIssue, reportIssue, reportIssue, scanFile, scanTree, setContextMethods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
leaveNode, visitToken, visitTriviaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sonar.plugins.java.api.JavaFileScanner
scanWithoutParsing
-
Field Details
-
GET_INSTANCE
- See Also:
-
JAVA_LANG_STRING
- See Also:
-
ALGORITHM_BY_METHOD_NAME
protected static final Map<String,AbstractHashAlgorithmChecker.InsecureAlgorithm> ALGORITHM_BY_METHOD_NAME
-
-
Constructor Details
-
AbstractHashAlgorithmChecker
public AbstractHashAlgorithmChecker()
-
-
Method Details
-
getMessageForClass
-
getMessageForAlgorithm
-
getMethodInvocationMatchers
- Specified by:
getMethodInvocationMatchersin classAbstractMethodDetection
-
onMethodInvocationFound
- Overrides:
onMethodInvocationFoundin classAbstractMethodDetection
-
onConstructorFound
- Overrides:
onConstructorFoundin classAbstractMethodDetection
-