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