BatchSharedKeyCredentials Class

  • java.lang.Object
    • ServiceClientCredentials

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:

baseUrl - The Batch service endpoint.
accountName - The Batch account name.
keyValue - The Batch access key.

Method Details

accountName

public String accountName()

Gets the Batch account name.

Returns:

The Batch account name.

applyCredentialsFilter

public void applyCredentialsFilter(OkHttpClient.Builder clientBuilder)

Applies the credentials to the Batch service request.

Parameters:

clientBuilder - The client builder.

baseUrl

public String baseUrl()

Gets the Batch service endpoint.

Overrides:

BatchSharedKeyCredentials.baseUrl()

Returns:

The Batch service endpoint.

keyValue

public String keyValue()

Gets the Base64 encoded account access key.

Returns:

The Base64 encoded account access key.

Applies to