Class ServicePrincipalAccount
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.auth.Account
-
- com.microsoft.azure.toolkit.lib.auth.core.serviceprincipal.ServicePrincipalAccount
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.account.IAccount
public class ServicePrincipalAccount extends Account
-
-
Field Summary
Fields Modifier and Type Field Description private AuthConfigurationconfiguration-
Fields inherited from class com.microsoft.azure.toolkit.lib.auth.Account
credentialManager, enablePersistence, entity, TOOLKIT_TOKEN_CACHE_NAME
-
-
Constructor Summary
Constructors Constructor Description ServicePrincipalAccount(AuthConfiguration authConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private com.azure.core.credential.TokenCredentialcreateCredential(com.azure.core.management.AzureEnvironment env)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
-
-
-
-
Field Detail
-
configuration
private final AuthConfiguration configuration
-
-
Constructor Detail
-
ServicePrincipalAccount
public ServicePrincipalAccount(@Nonnull AuthConfiguration authConfiguration)
-
-
Method Detail
-
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
-
createTokenCredentialManager
protected reactor.core.publisher.Mono<TokenCredentialManager> createTokenCredentialManager()
- Specified by:
createTokenCredentialManagerin classAccount
-
createCredential
private com.azure.core.credential.TokenCredential createCredential(com.azure.core.management.AzureEnvironment env)
-
-