public JsonRpcConfiguration jsonRpcConfiguration() {

    final JsonRpcConfiguration jsonRpcConfiguration = JsonRpcConfiguration.createDefault();
    jsonRpcConfiguration.setEnabled(isRpcHttpEnabled);
    jsonRpcConfiguration.setPort(rpcHttpPort);
    jsonRpcConfiguration.setMaxActiveConnections(rpcHttpMaxConnections);
    jsonRpcConfiguration.setCorsAllowedDomains(rpcHttpCorsAllowedOrigins);
    jsonRpcConfiguration.setRpcApis(rpcHttpApis.stream().distinct().collect(Collectors.toList()));
    jsonRpcConfiguration.setNoAuthRpcApis(
        rpcHttpApiMethodsNoAuth.stream().distinct().collect(Collectors.toList()));
    jsonRpcConfiguration.setAuthenticationEnabled(isRpcHttpAuthenticationEnabled);
    jsonRpcConfiguration.setAuthenticationCredentialsFile(rpcHttpAuthenticationCredentialsFile);
    jsonRpcConfiguration.setAuthenticationPublicKeyFile(rpcHttpAuthenticationPublicKeyFile);
    jsonRpcConfiguration.setAuthenticationAlgorithm(rpcHttpAuthenticationAlgorithm);
    jsonRpcConfiguration.setTlsConfiguration(rpcHttpTlsConfiguration());
    jsonRpcConfiguration.setMaxBatchSize(rpcHttpMaxBatchSize);
    jsonRpcConfiguration.setMaxRequestContentLength(rpcHttpMaxRequestContentLength);
    jsonRpcConfiguration.setPrettyJsonEnabled(prettyJsonEnabled);
    return jsonRpcConfiguration;
  }
Creates a JsonRpcConfiguration based on the provided options.

@return configuration populated from options or defaults
app/src/main/java/org/hyperledger/besu/cli/options/JsonRpcHttpOptions.java