Class QueueAudience

java.lang.Object
com.azure.core.util.ExpandableStringEnum<QueueAudience>
com.azure.storage.queue.models.QueueAudience

public class QueueAudience extends com.azure.core.util.ExpandableStringEnum<QueueAudience>
The audience to be used when requesting a token from Azure Active Directory (AAD). Note: This audience only has an effect when authenticating a TokenCredential.
  • Field Details

    • AZURE_PUBLIC_CLOUD

      public static final QueueAudience AZURE_PUBLIC_CLOUD
      Gets default Audience used to acquire a token for authorizing requests to any Azure Storage account. If no audience is specified, this resource ID is the default value: "https://storage.azure.com/".
  • Constructor Details

    • QueueAudience

      @Deprecated public QueueAudience()
      Deprecated.
      Use one of the constants or the fromString(String) factory method.
      Creates a new instance of QueueAudience without a ExpandableStringEnum.toString() value.

      This constructor shouldn't be called as it will produce a QueueAudience which doesn't have a String enum value.

  • Method Details

    • createQueueServiceAccountAudience

      public static QueueAudience createQueueServiceAccountAudience(String storageAccountName)
      The service endpoint for a given storage account. Use this method to acquire a token for authorizing requests to that specific Azure Storage account and service only.
      Parameters:
      storageAccountName - The storage account name used to populate the service endpoint.
      Returns:
      the audience with the queue service endpoint.
    • fromString

      public static QueueAudience fromString(String audience)
      The Azure Active Directory audience to use when forming authorization scopes. For the Language service, this value corresponds to a URL that identifies the Azure cloud where the resource is located. For more information see Authorize access to Azure blobs using Azure Active Directory.
      Parameters:
      audience - The Azure Active Directory audience to use when forming authorization scopes.
      Returns:
      the corresponding QueueAudience.
    • values

      public static Collection<QueueAudience> values()
      Returns:
      known QueueAudience values.