Package io.codemodder.codemods
Class UnverifiedJwtCodemod
java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.Expression>
io.codemodder.codemods.UnverifiedJwtCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
@Codemod(id="codeql:java/missing-jwt-signature-check",
reviewGuidance=MERGE_WITHOUT_REVIEW)
public class UnverifiedJwtCodemod
extends io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.Expression>
Fixes issues reported under the id "missing-jwt-signature-check".
-
Field Summary
Fields inherited from class io.codemodder.SarifPluginJavaParserChanger
sarif
Fields inherited from class io.codemodder.javaparser.JavaParserChanger
reporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
onResultFound
(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.Expression expression, com.contrastsecurity.sarif.Result result) Methods inherited from class io.codemodder.SarifPluginJavaParserChanger
visit
Methods inherited from class io.codemodder.javaparser.JavaParserChanger
dependenciesRequired, getDescription, getIndividualChangeDescription, getReferences, getSummary
-
Constructor Details
-
UnverifiedJwtCodemod
@Inject public UnverifiedJwtCodemod(@ProvidedCodeQLScan(ruleId="java/missing-jwt-signature-check") io.codemodder.RuleSarif sarif)
-
-
Method Details
-
onResultFound
public boolean onResultFound(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.Expression expression, com.contrastsecurity.sarif.Result result) - Specified by:
onResultFound
in classio.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.Expression>
-