From f18aaa751d7bd628c9b9357bab3d73de56d33c82 Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Wed, 7 Aug 2019 21:00:37 -0700 Subject: [PATCH] Cosmos Key Credential (#4885) Cosmos Key Credential holds the key credentials, and supports key rotations. User can update the key in CosmosKeyCredential object, and that will be reflected in SDK on the fly. --- .../main/java/com/azure/data/cosmos/CosmosClientBuilder.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/sdk/cosmos/microsoft-azure-cosmos/src/main/java/com/azure/data/cosmos/CosmosClientBuilder.java b/sdk/cosmos/microsoft-azure-cosmos/src/main/java/com/azure/data/cosmos/CosmosClientBuilder.java index c42b5c78bd422..c35c4202d6cf5 100644 --- a/sdk/cosmos/microsoft-azure-cosmos/src/main/java/com/azure/data/cosmos/CosmosClientBuilder.java +++ b/sdk/cosmos/microsoft-azure-cosmos/src/main/java/com/azure/data/cosmos/CosmosClientBuilder.java @@ -4,7 +4,6 @@ import com.azure.data.cosmos.internal.Configs; import com.azure.data.cosmos.internal.Permission; -import com.azure.data.cosmos.sync.CosmosSyncClient; import org.apache.commons.lang3.StringUtils; import java.util.List; @@ -211,7 +210,6 @@ private void validateConfig() { "cannot build client without any one of key, resource token, permissions, token resolver, and cosmos key credential"); ifThrowIllegalArgException(cosmosKeyCredential != null && StringUtils.isEmpty(cosmosKeyCredential.key()), "cannot build client without key credential"); - } /** * Builds a cosmos sync client object with the provided properties