Package org.sonar.java.checks
Class DeprecatedHashAlgorithmCheck
- 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
-
- org.sonar.java.checks.DeprecatedHashAlgorithmCheck
-
- All Implemented Interfaces:
JavaCheck,JavaFileScanner
public class DeprecatedHashAlgorithmCheck extends AbstractHashAlgorithmChecker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.checks.AbstractHashAlgorithmChecker
AbstractHashAlgorithmChecker.DeprecatedSpringPasswordEncoder, AbstractHashAlgorithmChecker.InsecureAlgorithm
-
-
Field Summary
-
Fields inherited from class org.sonar.java.checks.AbstractHashAlgorithmChecker
ALGORITHM_BY_METHOD_NAME, GET_INSTANCE, JAVA_LANG_STRING
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description DeprecatedHashAlgorithmCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetMessageForAlgorithm(String algorithmName)protected Optional<String>getMessageForClass(String className)-
Methods inherited from class org.sonar.java.checks.AbstractHashAlgorithmChecker
getMethodInvocationMatchers, onConstructorFound, onMethodInvocationFound
-
Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
nodesToVisit, onMethodReferenceFound, visitNode
-
Methods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssue, scanTree
-
Methods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
leaveFile, leaveNode, scanFile, setContext, visitToken, visitTrivia
-
-
-
-
Method Detail
-
getMessageForClass
protected Optional<String> getMessageForClass(String className)
- Specified by:
getMessageForClassin classAbstractHashAlgorithmChecker
-
getMessageForAlgorithm
protected String getMessageForAlgorithm(String algorithmName)
- Specified by:
getMessageForAlgorithmin classAbstractHashAlgorithmChecker
-
-