Skip to content

Commit

Permalink
Cosmos Key Credential (Azure#4885)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kushagraThapar authored and SDK Automation committed Aug 23, 2019
1 parent 4c8b4db commit ed75e70
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ed75e70

Please sign in to comment.