BatchSharedKeyCredentials Class
- java.
lang. Object - ServiceClientCredentials
- BatchCredentials
- com.
microsoft. azure. batch. auth. BatchSharedKeyCredentials
- com.
public class BatchSharedKeyCredentials implements BatchCredentials
Shared key credentials for an Azure Batch account.
Constructor Summary
Constructor | 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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
accountName()
Gets the Batch account name. |
void |
applyCredentialsFilter(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. |
Constructor Details
BatchSharedKeyCredentials
public 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.
Parameters:
Method Details
accountName
public String accountName()
Gets the Batch account name.
Returns:
applyCredentialsFilter
public void applyCredentialsFilter(OkHttpClient.Builder clientBuilder)
Applies the credentials to the Batch service request.
Parameters:
baseUrl
public String baseUrl()
Gets the Batch service endpoint.
Overrides:
BatchSharedKeyCredentials.baseUrl()Returns:
keyValue
public String keyValue()
Gets the Base64 encoded account access key.
Returns:
Applies to
Azure SDK for Java