Skip to main content

Find SSL socket configuration parameters

io.moderne.cryptography.FindSSLSocketParameters

Finds SSLSocket setter method invocations and extracts their parameter values into a data table.

Recipe source

GitHub, Issue Tracker, Maven Central

This recipe is available under the Apache License Version 2.0.

Usage

This recipe has no required configuration options. It can be activated by adding a dependency on io.moderne.recipe:rewrite-cryptography in your build file or by running a shell command (in which case no build changes are needed):

  1. Add the following to your build.gradle file:
build.gradle
plugins {
id("org.openrewrite.rewrite") version("latest.release")
}

rewrite {
activeRecipe("io.moderne.cryptography.FindSSLSocketParameters")
setExportDatatables(true)
}

repositories {
mavenCentral()
}

dependencies {
rewrite("io.moderne.recipe:rewrite-cryptography:0.8.1")
}
  1. Run gradle rewriteRun to run the recipe.

See how this recipe works across multiple open-source repositories

Run this recipe on OSS repos at scale with the Moderne SaaS.

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.

Data Tables

SSL socket parameters

io.moderne.cryptography.table.SSLSocketParametersTable

SSLSocket setter method invocations and their configured parameters including cipher suites, protocols, and other SSL/TLS settings.

Column NameDescription
Source fileThe source file containing the SSLSocket configuration
Line numberThe line number where the setter method is called
Socket variableThe variable name or expression representing the SSLSocket
Method nameThe setter method being called (e.g., setEnabledCipherSuites, setEnabledProtocols)
ParametersThe parameters passed to the setter method