Class ShareAudience
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ShareAudience>
com.azure.storage.file.share.models.ShareAudience
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
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
FieldsModifier and TypeFieldDescriptionstatic final ShareAudienceGets default Audience used to acquire a token for authorizing requests to any Azure Storage account. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareAudiencecreateShareServiceAccountAudience(String storageAccountName) The service endpoint for a given storage account.static ShareAudiencefromString(String audience) The Azure Active Directory audience to use when forming authorization scopes.static Collection<ShareAudience> values()Gets known ShareAudience values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
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
-
ShareAudience
Deprecated.Use one of the constants or thefromString(String)factory method.Creates a new instance ofShareAudiencewithout aExpandableStringEnum.toString()value.This constructor shouldn't be called as it will produce a
ShareAudiencewhich doesn't have a String enum value.
-
-
Method Details
-
fromString
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 ShareAudience.
-
values
Gets known ShareAudience values.- Returns:
- known ShareAudience values.
fromString(String)factory method.