public class BatchSharedKeyCredentials extends Object implements BatchCredentials
Constructor and Description |
---|
BatchSharedKeyCredentials(String baseUrl,
String accountName,
String keyValue)
Initializes a new instance of the
BatchSharedKeyCredentials class with the specified Batch service endpoint, account name, and access key. |
Modifier and Type | Method and Description |
---|---|
String |
accountName()
Gets the Batch account name.
|
void |
applyCredentialsFilter(okhttp3.OkHttpClient.Builder clientBuilder)
Applies the credentials to the Batch service request.
|
String |
baseUrl()
Gets the Batch service endpoint.
|
String |
keyValue()
Gets the Base64 encoded account access key.
|
public BatchSharedKeyCredentials(String baseUrl, String accountName, String keyValue)
BatchSharedKeyCredentials
class with the specified Batch service endpoint, account name, and access key.baseUrl
- The Batch service endpoint.accountName
- The Batch account name.keyValue
- The Batch access key.public String accountName()
public String keyValue()
public void applyCredentialsFilter(okhttp3.OkHttpClient.Builder clientBuilder)
applyCredentialsFilter
in interface ServiceClientCredentials
clientBuilder
- The client builder.public String baseUrl()
BatchCredentials
baseUrl
in interface BatchCredentials
Copyright © 2019. All rights reserved.