public final class SharedKeyCredentials extends java.lang.Object implements ICredentials
Constructor and Description |
---|
SharedKeyCredentials(java.lang.String accountName,
java.lang.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) |
java.lang.String |
getAccountName()
Gets the account name associated with the request.
|
public SharedKeyCredentials(java.lang.String accountName, java.lang.String accountKey) throws java.security.InvalidKeyException
accountName
- The account name associated with the request.accountKey
- A string that represent the account access accountKey.java.security.InvalidKeyException
public java.lang.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.RequestPolicyFactory