Package com.azure.identity
Class AzureIdentityEnvVars
java.lang.Object
com.azure.core.util.ExpandableStringEnum<AzureIdentityEnvVars>
com.azure.identity.AzureIdentityEnvVars
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class AzureIdentityEnvVars
extends com.azure.core.util.ExpandableStringEnum<AzureIdentityEnvVars>
Defines well-known Azure Identity environment variable names that can be used with
DefaultAzureCredentialBuilder.requireEnvVars(AzureIdentityEnvVars...)
.
This expandable enum provides a type-safe way to reference common Azure Identity environment variables while still allowing for custom environment variable names.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AzureIdentityEnvVars
The Azure authority host environment variable.static final AzureIdentityEnvVars
The Azure client certificate password environment variable.static final AzureIdentityEnvVars
The Azure client certificate path environment variable.static final AzureIdentityEnvVars
The Azure client ID environment variable.static final AzureIdentityEnvVars
The Azure client secret environment variable.static final AzureIdentityEnvVars
The Azure client send certificate chain environment variable.static final AzureIdentityEnvVars
The Azure tenant ID environment variable.static final AzureIdentityEnvVars
The Azure token credentials environment variable for selecting credential types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureIdentityEnvVars
fromString
(String name) Creates or finds an AzureIdentityEnvVars from its string representation.static Collection
<AzureIdentityEnvVars> values()
Gets known AzureIdentityEnvVars values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
AZURE_TENANT_ID
The Azure tenant ID environment variable. -
AZURE_CLIENT_ID
The Azure client ID environment variable. -
AZURE_CLIENT_SECRET
The Azure client secret environment variable. -
AZURE_CLIENT_CERTIFICATE_PATH
The Azure client certificate path environment variable. -
AZURE_CLIENT_CERTIFICATE_PASSWORD
The Azure client certificate password environment variable. -
AZURE_AUTHORITY_HOST
The Azure authority host environment variable. -
AZURE_TOKEN_CREDENTIALS
The Azure token credentials environment variable for selecting credential types. -
AZURE_CLIENT_SEND_CERTIFICATE_CHAIN
The Azure client send certificate chain environment variable.
-
-
Constructor Details
-
AzureIdentityEnvVars
Deprecated.Use one of the constants or thefromString(String)
factory method.Creates a new instance ofAzureIdentityEnvVars
without aExpandableStringEnum.toString()
value.This constructor shouldn't be called as it will produce a
AzureIdentityEnvVars
which doesn't have a String enum value.
-
-
Method Details
-
fromString
Creates or finds an AzureIdentityEnvVars from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding AzureIdentityEnvVars.
-
values
Gets known AzureIdentityEnvVars values.- Returns:
- known AzureIdentityEnvVars values.
-
fromString(String)
factory method.