public class CosmosKeyCredential extends Object
CosmosAsyncClient
Constructor and Description |
---|
CosmosKeyCredential(String key) |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Returns the key stored in Cosmos Key Credential
|
int |
getKeyHashCode()
CosmosKeyCredential stores the computed hashcode of the key for performance improvements.
|
CosmosKeyCredential |
setKey(String key)
Sets the key to be used in CosmosKeyCredential
|
public CosmosKeyCredential(String key)
public String getKey()
public CosmosKeyCredential setKey(String key)
key
- key to be used in CosmosKeyCredentialpublic int getKeyHashCode()
Copyright © 2020 Microsoft Corporation. All rights reserved.