Class IntelliJCredentialBuilder


public class IntelliJCredentialBuilder extends CredentialBuilderBase<VisualStudioCodeCredentialBuilder>
Fluent credential builder for instantiating a IntelliJCredential.
See Also:
  • Constructor Details

    • IntelliJCredentialBuilder

      public IntelliJCredentialBuilder()
  • Method Details

    • tenantId

      public IntelliJCredentialBuilder tenantId(String tenantId)
      Sets the tenant id of the user to authenticate through the IntelliJCredential. 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. The databasePath is 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 - if databasePath is either not specified or is empty.
    • additionallyAllowedTenants

      public IntelliJCredentialBuilder 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 IntelliJCredentialBuilder 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

      public IntelliJCredential build()
      Creates a new IntelliJCredential with the current configurations.
      Returns:
      a IntelliJCredential with the current configurations.