Package io.codemodder.codemods
Class UpgradeSSLEngineTLSCodemod
java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
io.codemodder.codemods.UpgradeSSLEngineTLSCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
@Codemod(id="pixee:java/upgrade-sslengine-tls",
reviewGuidance=MERGE_WITHOUT_REVIEW)
public final class UpgradeSSLEngineTLSCodemod
extends io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
Targets making sure the protocols set in
SSLEngine.setEnabledProtocols(String[]) are safe.-
Field Summary
Fields inherited from class io.codemodder.SarifPluginJavaParserChanger
sarifFields inherited from class io.codemodder.javaparser.JavaParserChanger
reporter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonResultFound(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.MethodCallExpr setEnabledProtocolsCall, com.contrastsecurity.sarif.Result result) Methods inherited from class io.codemodder.SarifPluginJavaParserChanger
visitMethods inherited from class io.codemodder.javaparser.JavaParserChanger
dependenciesRequired, getDescription, getIndividualChangeDescription, getReferences, getSourceControlUrl, getSummary
-
Constructor Details
-
UpgradeSSLEngineTLSCodemod
@Inject public UpgradeSSLEngineTLSCodemod(@SemgrepScan(ruleId="upgrade-sslengine-tls") io.codemodder.RuleSarif semgrepSarif)
-
-
Method Details
-
onResultFound
public boolean onResultFound(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.MethodCallExpr setEnabledProtocolsCall, com.contrastsecurity.sarif.Result result) - Specified by:
onResultFoundin classio.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
-