Package com.azure.identity
Class IntelliJCredentialBuilder
- java.lang.Object
-
- com.azure.identity.CredentialBuilderBase<VisualStudioCodeCredentialBuilder>
-
- com.azure.identity.IntelliJCredentialBuilder
-
public class IntelliJCredentialBuilder extends CredentialBuilderBase<VisualStudioCodeCredentialBuilder>
Fluent credential builder for instantiating aIntelliJCredential.- See Also:
IntelliJCredential
-
-
Constructor Summary
Constructors Constructor Description IntelliJCredentialBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntelliJCredentialbuild()Creates a newIntelliJCredentialwith the current configurations.IntelliJCredentialBuilderkeePassDatabasePath(String databasePath)Specifies the KeePass database path to read the cached credentials of Azure toolkit for IntelliJ plugin.IntelliJCredentialBuildertenantId(String tenantId)Sets the tenant id of the user to authenticate through theIntelliJCredential.-
Methods inherited from class com.azure.identity.CredentialBuilderBase
configuration, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeout
-
-
-
-
Method Detail
-
tenantId
public IntelliJCredentialBuilder tenantId(String tenantId)
Sets the tenant id of the user to authenticate through theIntelliJCredential. The default is the tenant the user originally authenticated to via the Azure Toolkit for IntelliJ plugin.- Parameters:
tenantId- the tenant ID to set.- Returns:
- An updated instance of this builder with the tenant id set as specified.
-
keePassDatabasePath
public IntelliJCredentialBuilder keePassDatabasePath(String databasePath)
Specifies the KeePass database path to read the cached credentials of Azure toolkit for IntelliJ plugin. ThedatabasePathis required on Windows platform. For macOS and Linux platform native key chain / key ring will be accessed respectively to retrieve the cached credentials.This path can be located in the IntelliJ IDE. Windows: File -> Settings -> Appearance & Behavior -> System Settings -> Passwords.
- Parameters:
databasePath- the path to the KeePass database.- Returns:
- An updated instance of this builder with the KeePass database path set as specified.
- Throws:
IllegalArgumentException- ifdatabasePathis either not specified or is empty.
-
build
public IntelliJCredential build()
Creates a newIntelliJCredentialwith the current configurations.- Returns:
- a
IntelliJCredentialwith the current configurations.
-
-