test_class.file: oak-blob-cloud-azure/src/test/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/UtilsTest.java
test_class.identifier: UtilsTest
test_case.body: @Test
      public void testConnectionStringIsBasedOnAccessKeyIfSASMissing() {
          Properties properties = new Properties();
          properties.put(AzureConstants.AZURE_STORAGE_ACCOUNT_NAME, "accessKey");
          properties.put(AzureConstants.AZURE_STORAGE_ACCOUNT_KEY, "secretKey");
  
          String connectionString = Utils.getConnectionStringFromProperties(properties);
          assertEquals(connectionString,
                  String.format("DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s","accessKey","secretKey"));
      }
test_case.class_method_signature: UtilsTest.testConnectionStringIsBasedOnAccessKeyIfSASMissing()
test_case.full_signature: @Test public void testConnectionStringIsBasedOnAccessKeyIfSASMissing()
test_case.identifier: testConnectionStringIsBasedOnAccessKeyIfSASMissing
test_case.invocations: put put getConnectionStringFromProperties assertEquals format
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConnectionStringIsBasedOnAccessKeyIfSASMissing()
focal_class.declarator: DEFAULT_CONFIG_FILE = "azure.properties"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_CONFIG_FILE = "azure.properties";
focal_class.type: String
focal_class.var_name: DEFAULT_CONFIG_FILE
focal_class.declarator: DASH = "-"
focal_class.modifier: public static final
focal_class.original_string: public static final String DASH = "-";
focal_class.type: String
focal_class.var_name: DASH
focal_class.file: oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/Utils.java
focal_class.identifier: Utils
focal_class.class_method_signature: Utils.Utils()
focal_class.full_signature: private  Utils()
focal_class.identifier: Utils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Utils()
focal_class.class_method_signature: Utils.getBlobClient(@NotNull final String connectionString)
focal_class.full_signature: public static CloudBlobClient getBlobClient(@NotNull final String connectionString)
focal_class.identifier: getBlobClient
focal_class.modifiers: public static
focal_class.parameters: (@NotNull final String connectionString)
focal_class.return: CloudBlobClient
focal_class.signature: CloudBlobClient getBlobClient(@NotNull final String connectionString)
focal_class.class_method_signature: Utils.getBlobClient(@NotNull final String connectionString,
                                                  @Nullable final BlobRequestOptions requestOptions)
focal_class.full_signature: public static CloudBlobClient getBlobClient(@NotNull final String connectionString,
                                                  @Nullable final BlobRequestOptions requestOptions)
focal_class.identifier: getBlobClient
focal_class.modifiers: public static
focal_class.parameters: (@NotNull final String connectionString,
                                                  @Nullable final BlobRequestOptions requestOptions)
focal_class.return: CloudBlobClient
focal_class.signature: CloudBlobClient getBlobClient(@NotNull final String connectionString,
                                                  @Nullable final BlobRequestOptions requestOptions)
focal_class.class_method_signature: Utils.getBlobContainer(@NotNull final String connectionString,
                                                        @NotNull final String containerName)
focal_class.full_signature: public static CloudBlobContainer getBlobContainer(@NotNull final String connectionString,
                                                        @NotNull final String containerName)
focal_class.identifier: getBlobContainer
focal_class.modifiers: public static
focal_class.parameters: (@NotNull final String connectionString,
                                                        @NotNull final String containerName)
focal_class.return: CloudBlobContainer
focal_class.signature: CloudBlobContainer getBlobContainer(@NotNull final String connectionString,
                                                        @NotNull final String containerName)
focal_class.class_method_signature: Utils.getBlobContainer(@NotNull final String connectionString,
                                                        @NotNull final String containerName,
                                                        @Nullable final BlobRequestOptions requestOptions)
focal_class.full_signature: public static CloudBlobContainer getBlobContainer(@NotNull final String connectionString,
                                                        @NotNull final String containerName,
                                                        @Nullable final BlobRequestOptions requestOptions)
focal_class.identifier: getBlobContainer
focal_class.modifiers: public static
focal_class.parameters: (@NotNull final String connectionString,
                                                        @NotNull final String containerName,
                                                        @Nullable final BlobRequestOptions requestOptions)
focal_class.return: CloudBlobContainer
focal_class.signature: CloudBlobContainer getBlobContainer(@NotNull final String connectionString,
                                                        @NotNull final String containerName,
                                                        @Nullable final BlobRequestOptions requestOptions)
focal_class.class_method_signature: Utils.setProxyIfNeeded(final Properties properties)
focal_class.full_signature: public static void setProxyIfNeeded(final Properties properties)
focal_class.identifier: setProxyIfNeeded
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties)
focal_class.return: void
focal_class.signature: void setProxyIfNeeded(final Properties properties)
focal_class.class_method_signature: Utils.getRetryPolicy(final String maxRequestRetry)
focal_class.full_signature: public static RetryPolicy getRetryPolicy(final String maxRequestRetry)
focal_class.identifier: getRetryPolicy
focal_class.modifiers: public static
focal_class.parameters: (final String maxRequestRetry)
focal_class.return: RetryPolicy
focal_class.signature: RetryPolicy getRetryPolicy(final String maxRequestRetry)
focal_class.class_method_signature: Utils.getConnectionStringFromProperties(Properties properties)
focal_class.full_signature: public static String getConnectionStringFromProperties(Properties properties)
focal_class.identifier: getConnectionStringFromProperties
focal_class.modifiers: public static
focal_class.parameters: (Properties properties)
focal_class.return: String
focal_class.signature: String getConnectionStringFromProperties(Properties properties)
focal_class.class_method_signature: Utils.getConnectionStringForSas(String sasUri, String blobEndpoint)
focal_class.full_signature: private static String getConnectionStringForSas(String sasUri, String blobEndpoint)
focal_class.identifier: getConnectionStringForSas
focal_class.modifiers: private static
focal_class.parameters: (String sasUri, String blobEndpoint)
focal_class.return: String
focal_class.signature: String getConnectionStringForSas(String sasUri, String blobEndpoint)
focal_class.class_method_signature: Utils.getConnectionString(final String accountName, final String accountKey)
focal_class.full_signature: public static String getConnectionString(final String accountName, final String accountKey)
focal_class.identifier: getConnectionString
focal_class.modifiers: public static
focal_class.parameters: (final String accountName, final String accountKey)
focal_class.return: String
focal_class.signature: String getConnectionString(final String accountName, final String accountKey)
focal_class.class_method_signature: Utils.readConfig(String fileName)
focal_class.full_signature: public static Properties readConfig(String fileName)
focal_class.identifier: readConfig
focal_class.modifiers: public static
focal_class.parameters: (String fileName)
focal_class.return: Properties
focal_class.signature: Properties readConfig(String fileName)
focal_method.body: public static String getConnectionStringFromProperties(Properties properties) {
  
          String sasUri = properties.getProperty(AzureConstants.AZURE_SAS, "");
          String blobEndpoint = properties.getProperty(AzureConstants.AZURE_BLOB_ENDPOINT, "");
          String connectionString = properties.getProperty(AzureConstants.AZURE_CONNECTION_STRING, "");
  
          if (!connectionString.isEmpty()) {
              return connectionString;
          }
  
          if (!sasUri.isEmpty()) {
              return getConnectionStringForSas(sasUri, blobEndpoint);
          }
  
          return getConnectionString(
              properties.getProperty(AzureConstants.AZURE_STORAGE_ACCOUNT_NAME, ""),
              properties.getProperty(AzureConstants.AZURE_STORAGE_ACCOUNT_KEY, ""));
      }
focal_method.class_method_signature: Utils.getConnectionStringFromProperties(Properties properties)
focal_method.full_signature: public static String getConnectionStringFromProperties(Properties properties)
focal_method.identifier: getConnectionStringFromProperties
focal_method.invocations: getProperty getProperty getProperty isEmpty isEmpty getConnectionStringForSas getConnectionString getProperty getProperty
focal_method.modifiers: public static
focal_method.parameters: (Properties properties)
focal_method.return: String
focal_method.signature: String getConnectionStringFromProperties(Properties properties)