public class CosmosKeyCredential extends Object
CosmosAsyncClient| Constructor and Description |
|---|
CosmosKeyCredential(String key)
Instantiates a new Cosmos key credential.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Returns the key stored in Cosmos Key Credential
|
CosmosKeyCredential |
setKey(String key)
Sets the key to be used in CosmosKeyCredential
|
public CosmosKeyCredential(String key)
key - the keypublic String getKey()
public CosmosKeyCredential setKey(String key)
key - key to be used in CosmosKeyCredentialCopyright © 2020 Microsoft Corporation. All rights reserved.