DataLakeAudience Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. storage. file. datalake. models. DataLakeAudience
- com.
- com.
public class DataLakeAudience
extends ExpandableStringEnum<DataLakeAudience>
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 Summary
Modifier and Type | Field and Description |
---|---|
static final
Data |
AZURE_PUBLIC_CLOUD
Gets default Audience used to acquire a token for authorizing requests to any Azure Storage account. |
Constructor Summary
Constructor | Description |
---|---|
DataLakeAudience() |
Deprecated
Use one of the constants or the fromString(String audience) factory method.
Creates a new instance of DataLakeAudience without a #toString() value. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Data |
createDataLakeServiceAccountAudience(String storageAccountName)
The service endpoint for a given storage account. |
static
Data |
fromString(String audience)
The Azure Active Directory audience to use when forming authorization scopes. |
static
Collection<Data |
values() |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
AZURE_PUBLIC_CLOUD
public static final DataLakeAudience 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
DataLakeAudience
@Deprecated
public DataLakeAudience()
Deprecated
Creates a new instance of DataLakeAudience without a #toString() value.
This constructor shouldn't be called as it will produce a DataLakeAudience which doesn't have a String enum value.
Method Details
createDataLakeServiceAccountAudience
public static DataLakeAudience createDataLakeServiceAccountAudience(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:
Returns:
fromString
public static DataLakeAudience 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:
Returns:
values
public static Collection
Returns:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour