Class TokenCredentialManager

    • Field Detail

      • LOGGER

        private static final com.azure.core.util.logging.ClientLogger LOGGER
      • environment

        protected com.azure.core.management.AzureEnvironment environment
      • email

        protected String email
      • rootCredentialSupplier

        protected java.util.function.Supplier<com.azure.core.credential.TokenCredential> rootCredentialSupplier
      • credentialSupplier

        protected java.util.function.Function<String,​com.azure.core.credential.TokenCredential> credentialSupplier
    • Constructor Detail

      • TokenCredentialManager

        public TokenCredentialManager()
    • Method Detail

      • createTokenCredentialForTenant

        public com.azure.core.credential.TokenCredential createTokenCredentialForTenant​(String tenantId)
      • listSubscriptionsInTenant

        private static reactor.core.publisher.Mono<List<com.microsoft.azure.toolkit.lib.common.model.Subscription>> listSubscriptionsInTenant​(com.azure.resourcemanager.resources.ResourceManager.Authenticated client,
                                                                                                                                              String tenantId)
      • toSubscriptionEntity

        private static com.microsoft.azure.toolkit.lib.common.model.Subscription toSubscriptionEntity​(String tenantId,
                                                                                                      com.azure.resourcemanager.resources.models.Subscription subscription)
      • createAzureClient

        private com.azure.resourcemanager.resources.ResourceManager.Authenticated createAzureClient​(com.azure.core.management.AzureEnvironment env,
                                                                                                    String tenantId)
      • createAzureClient

        private com.azure.resourcemanager.resources.ResourceManager.Authenticated createAzureClient​(com.azure.core.management.AzureEnvironment env)
      • configureAzure

        private static com.azure.resourcemanager.resources.ResourceManager.Configurable configureAzure()
        TODO: share the same code for creating ResourceManager.Configurable
      • createUserAgentPolicy

        private static com.azure.core.http.policy.HttpPipelinePolicy createUserAgentPolicy()