Package com.microsoft.azure.batch.auth
Class BatchSharedKeyCredentials
- java.lang.Object
-
- com.microsoft.azure.batch.auth.BatchSharedKeyCredentials
-
- All Implemented Interfaces:
BatchCredentials
,com.microsoft.rest.credentials.ServiceClientCredentials
public class BatchSharedKeyCredentials extends Object implements BatchCredentials
Shared key credentials for an Azure Batch account.
-
-
Constructor Summary
Constructors Constructor Description BatchSharedKeyCredentials(String baseUrl, String accountName, String keyValue)
Initializes a new instance of theBatchSharedKeyCredentials
class with the specified Batch service endpoint, account name, and access key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
BatchSharedKeyCredentials
public BatchSharedKeyCredentials(String baseUrl, String accountName, String keyValue)
Initializes a new instance of theBatchSharedKeyCredentials
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 Detail
-
accountName
public String accountName()
Gets the Batch account name.- Returns:
- The Batch account name.
-
keyValue
public String keyValue()
Gets the Base64 encoded account access key.- Returns:
- The Base64 encoded account access key.
-
applyCredentialsFilter
public void applyCredentialsFilter(okhttp3.OkHttpClient.Builder clientBuilder)
Applies the credentials to the Batch service request.- Specified by:
applyCredentialsFilter
in interfacecom.microsoft.rest.credentials.ServiceClientCredentials
- Parameters:
clientBuilder
- The client builder.
-
baseUrl
public String baseUrl()
Description copied from interface:BatchCredentials
Gets the Batch service endpoint.- Specified by:
baseUrl
in interfaceBatchCredentials
- Returns:
- The Batch service endpoint.
-
-