SharedKeyCredentials Class

Definition

SharedKeyCredentials are a means of signing and authenticating storage requests. The key can be obtained from the Azure portal. This factory will create policies which take care of all the details of creating strings to sign, signing them, and setting the Authentication header. While this is a common way of authenticating with the service, recommended practice is using TokenCredentials. Pass this as the credentials in the construction of a new HttpPipeline via the StorageURL type.

public class SharedKeyCredentials implements ICredentials
Inheritance
java.lang.Object
RequestPolicyFactory
SharedKeyCredentials

Constructors

SharedKeyCredentials(String accountName, String accountKey)

Initializes a new instance of SharedKeyCredentials contains an account's name and its primary or secondary accountKey.

Methods

create(RequestPolicy nextRequestPolicy, RequestPolicyOptions options)
getAccountName()

Gets the account name associated with the request.

Applies to