Class Account

    • Constructor Detail

      • Account

        public Account()
    • Method Detail

      • getAuthType

        public abstract AuthType getAuthType()
      • getClientId

        protected abstract String getClientId()
      • getEnvironment

        public com.azure.core.management.AzureEnvironment getEnvironment()
        Specified by:
        getEnvironment in interface com.microsoft.azure.toolkit.lib.account.IAccount
      • portalUrl

        public String portalUrl()
        Specified by:
        portalUrl in interface com.microsoft.azure.toolkit.lib.account.IAccount
      • preLoginCheck

        protected abstract reactor.core.publisher.Mono<Boolean> preLoginCheck()
      • getTokenCredentialForTenant

        public com.azure.core.credential.TokenCredential getTokenCredentialForTenant​(String tenantId)
      • getTokenCredentialForTenantV1

        public com.microsoft.azure.credentials.AzureTokenCredentials getTokenCredentialForTenantV1​(String tenantId)
      • getTokenCredential

        public com.azure.core.credential.TokenCredential getTokenCredential​(String subscriptionId)
        Specified by:
        getTokenCredential in interface com.microsoft.azure.toolkit.lib.account.IAccount
      • getTokenCredentialV1

        public com.microsoft.azure.credentials.AzureTokenCredentials getTokenCredentialV1​(String subscriptionId)
      • logout

        @CacheEvict("<ALL>")
        public void logout()
      • getSubscriptions

        public List<com.microsoft.azure.toolkit.lib.common.model.Subscription> getSubscriptions()
        Specified by:
        getSubscriptions in interface com.microsoft.azure.toolkit.lib.account.IAccount
      • getSelectedSubscriptions

        public List<com.microsoft.azure.toolkit.lib.common.model.Subscription> getSelectedSubscriptions()
        Specified by:
        getSelectedSubscriptions in interface com.microsoft.azure.toolkit.lib.account.IAccount
      • selectSubscription

        public void selectSubscription​(List<String> selectedSubscriptionIds)
      • initializeTokenCredentialManager

        private reactor.core.publisher.Mono<TokenCredentialManager> initializeTokenCredentialManager()
      • createTokenCredentialManager

        protected abstract reactor.core.publisher.Mono<TokenCredentialManager> createTokenCredentialManager()
      • checkAvailable

        public reactor.core.publisher.Mono<Boolean> checkAvailable()
      • login

        protected reactor.core.publisher.Mono<Account> login()
      • continueLogin

        public reactor.core.publisher.Mono<Account> continueLogin()
      • finishLogin

        private void finishLogin()
      • reloadSubscriptions

        public reactor.core.publisher.Mono<List<com.microsoft.azure.toolkit.lib.common.model.Subscription>> reloadSubscriptions()
      • loginStep1

        private reactor.core.publisher.Mono<Boolean> loginStep1()
        Login step 1: check avail and set avail in entity
        Returns:
        Mono = true if this account is available
      • getSelectedSubscriptionById

        private com.microsoft.azure.toolkit.lib.common.model.Subscription getSelectedSubscriptionById​(String subscriptionId)
      • getSubscription

        public com.microsoft.azure.toolkit.lib.common.model.Subscription getSubscription​(String subscriptionId)
        Specified by:
        getSubscription in interface com.microsoft.azure.toolkit.lib.account.IAccount
      • selectSubscriptionInner

        private static void selectSubscriptionInner​(List<com.microsoft.azure.toolkit.lib.common.model.Subscription> subscriptions,
                                                    List<String> subscriptionIds)
      • requireAuthenticated

        private void requireAuthenticated()