Class 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 Detail

      • 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 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 interface com.microsoft.rest.credentials.ServiceClientCredentials
        Parameters:
        clientBuilder - The client builder.