Class UpgradeSSLSocketProtocolsTLSCodemod

java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
io.codemodder.codemods.UpgradeSSLSocketProtocolsTLSCodemod
All Implemented Interfaces:
io.codemodder.CodeChanger

@Codemod(id="pixee:java/upgrade-sslsocket-tls", reviewGuidance=MERGE_WITHOUT_REVIEW) public final class UpgradeSSLSocketProtocolsTLSCodemod extends io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
Targets making sure the protocols set in SSLSocket.setEnabledProtocols(String[]) are safe.
  • Field Summary

    Fields inherited from class io.codemodder.SarifPluginJavaParserChanger

    sarif

    Fields inherited from class io.codemodder.javaparser.JavaParserChanger

    reporter
  • Constructor Summary

    Constructors
    Constructor
    Description
    UpgradeSSLSocketProtocolsTLSCodemod(io.codemodder.RuleSarif semgrepSarif)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onResultFound(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

    shouldRun, visit

    Methods inherited from class io.codemodder.javaparser.JavaParserChanger

    dependenciesRequired, getDescription, getIndividualChangeDescription, getReferences, getSummary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UpgradeSSLSocketProtocolsTLSCodemod

      @Inject public UpgradeSSLSocketProtocolsTLSCodemod(@SemgrepScan(ruleId="upgrade-sslsocket-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:
      onResultFound in class io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>