Package com.azure.identity
Class AzurePowerShellCredentialBuilder
java.lang.Object
com.azure.identity.CredentialBuilderBase<AzurePowerShellCredentialBuilder>
com.azure.identity.AzurePowerShellCredentialBuilder
public class AzurePowerShellCredentialBuilder
extends CredentialBuilderBase<AzurePowerShellCredentialBuilder>
Fluent credential builder for instantiating a
AzurePowerShellCredential
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionallyAllowedTenants
(String... additionallyAllowedTenants) Specifies tenants in addition to the specified tenantId for which the credential may acquire tokens.additionallyAllowedTenants
(List<String> additionallyAllowedTenants) Specifies tenants in addition to the specified tenantId for which the credential may acquire tokens.build()
Creates a newAzurePowerShellCredential
with the current configurations.Sets the tenant ID of the application.Methods inherited from class com.azure.identity.CredentialBuilderBase
configuration, enableAccountIdentifierLogging, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeout
-
Constructor Details
-
AzurePowerShellCredentialBuilder
public AzurePowerShellCredentialBuilder()
-
-
Method Details
-
tenantId
Sets the tenant ID of the application.- Parameters:
tenantId
- the tenant ID of the application.- Returns:
- An updated instance of this builder with the tenant id set as specified.
-
additionallyAllowedTenants
public AzurePowerShellCredentialBuilder additionallyAllowedTenants(String... additionallyAllowedTenants) Specifies tenants in addition to the specified tenantId for which the credential may acquire tokens. Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the logged in account can access. If no value is specified for tenantId this option will have no effect, and the credential will acquire tokens for any requested tenant.- Parameters:
additionallyAllowedTenants
- the additionally allowed tenants.- Returns:
- An updated instance of this builder with the additional tenants configured.
-
additionallyAllowedTenants
public AzurePowerShellCredentialBuilder additionallyAllowedTenants(List<String> additionallyAllowedTenants) Specifies tenants in addition to the specified tenantId for which the credential may acquire tokens. Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the logged in account can access. If no value is specified for tenantId this option will have no effect, and the credential will acquire tokens for any requested tenant.- Parameters:
additionallyAllowedTenants
- the additionally allowed tenants.- Returns:
- An updated instance of this builder with the additional tenants configured.
-
build
Creates a newAzurePowerShellCredential
with the current configurations.- Returns:
- a
AzurePowerShellCredential
with the current configurations.
-