Package org.sonar.java.checks.security
Class CookieShouldNotContainSensitiveDataCheck
- 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.security.CookieShouldNotContainSensitiveDataCheck
-
- All Implemented Interfaces:
JavaCheck,JavaFileScanner
public class CookieShouldNotContainSensitiveDataCheck extends AbstractMethodDetection
-
-
Field Summary
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description CookieShouldNotContainSensitiveDataCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<MethodMatcher>getMethodInvocationMatchers()List<Tree.Kind>nodesToVisit()protected voidonConstructorFound(NewClassTree newClassTree)protected voidonMethodInvocationFound(MethodInvocationTree methodTree)-
Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
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
hasSemantic, leaveFile, leaveNode, scanFile, setContext, visitToken, visitTrivia
-
-
-
-
Method Detail
-
getMethodInvocationMatchers
protected List<MethodMatcher> getMethodInvocationMatchers()
- Specified by:
getMethodInvocationMatchersin classAbstractMethodDetection
-
nodesToVisit
public List<Tree.Kind> nodesToVisit()
- Overrides:
nodesToVisitin classAbstractMethodDetection
-
onMethodInvocationFound
protected void onMethodInvocationFound(MethodInvocationTree methodTree)
- Overrides:
onMethodInvocationFoundin classAbstractMethodDetection
-
onConstructorFound
protected void onConstructorFound(NewClassTree newClassTree)
- Overrides:
onConstructorFoundin classAbstractMethodDetection
-
-