Class AzureAccount.SimpleAccount
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.auth.Account
-
- com.microsoft.azure.toolkit.lib.auth.AzureAccount.SimpleAccount
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.account.IAccount
- Enclosing class:
- AzureAccount
static class AzureAccount.SimpleAccount extends Account
-
-
Field Summary
Fields Modifier and Type Field Description private com.azure.core.credential.TokenCredentialcredential-
Fields inherited from class com.microsoft.azure.toolkit.lib.auth.Account
credentialManager, enablePersistence, entity, TOOLKIT_TOKEN_CACHE_NAME
-
-
Constructor Summary
Constructors Constructor Description SimpleAccount(AccountEntity accountEntity, com.azure.core.credential.TokenCredential credential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private com.azure.core.credential.TokenCredentialcreateCredential()protected reactor.core.publisher.Mono<TokenCredentialManager>createTokenCredentialManager()AuthTypegetAuthType()protected StringgetClientId()protected reactor.core.publisher.Mono<Boolean>preLoginCheck()-
Methods inherited from class com.microsoft.azure.toolkit.lib.auth.Account
checkAvailable, continueLogin, getEnvironment, getSelectedSubscriptions, getSubscription, getSubscriptions, getTokenCredential, getTokenCredentialForTenant, getTokenCredentialForTenantV1, getTokenCredentialV1, login, logout, portalUrl, reloadSubscriptions, selectSubscription, toString
-
-
-
-
Constructor Detail
-
SimpleAccount
public SimpleAccount(@Nonnull AccountEntity accountEntity, @Nonnull com.azure.core.credential.TokenCredential credential)
-
-
Method Detail
-
createTokenCredentialManager
protected reactor.core.publisher.Mono<TokenCredentialManager> createTokenCredentialManager()
- Specified by:
createTokenCredentialManagerin classAccount
-
createCredential
private com.azure.core.credential.TokenCredential createCredential()
-
getAuthType
public AuthType getAuthType()
- Specified by:
getAuthTypein classAccount
-
getClientId
protected String getClientId()
- Specified by:
getClientIdin classAccount
-
preLoginCheck
protected reactor.core.publisher.Mono<Boolean> preLoginCheck()
- Specified by:
preLoginCheckin classAccount
-
-