public final class SharedKeyCredentials extends Object implements ICredentials
TokenCredentials. Pass this as the credentials in the construction of a new
HttpPipeline via the StorageURL type.| Constructor and Description |
|---|
SharedKeyCredentials(String accountName,
String accountKey)
Initializes a new instance of SharedKeyCredentials contains an account's name and its primary or secondary
accountKey.
|
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.rest.v2.policy.RequestPolicy |
create(com.microsoft.rest.v2.policy.RequestPolicy nextRequestPolicy,
com.microsoft.rest.v2.policy.RequestPolicyOptions options) |
String |
getAccountName()
Gets the account name associated with the request.
|
public SharedKeyCredentials(String accountName, String accountKey) throws InvalidKeyException
accountName - The account name associated with the request.accountKey - The account access key used to authenticate the request.InvalidKeyException - Thrown when the accountKey is ill-formatted.public String getAccountName()
public com.microsoft.rest.v2.policy.RequestPolicy create(com.microsoft.rest.v2.policy.RequestPolicy nextRequestPolicy,
com.microsoft.rest.v2.policy.RequestPolicyOptions options)
create in interface com.microsoft.rest.v2.policy.RequestPolicyFactoryCopyright © 2019 Microsoft Corporation. All rights reserved.