Freigeben über


IManagedIdentityApplication Interface

Implements

com.microsoft.aad.msal4j.IApplicationBase

public interface IManagedIdentityApplication
extends com.microsoft.aad.msal4j.IApplicationBase

Interface representing a managed identity application. Managed identity applications are used to acquire a token for managed identity assigned to an azure resource such as Azure function, app service, virtual machine, etc. to acquire a token without using credentials. For details see https://aka.ms/msal4jclientapplications

Method Summary

Modifier and Type Method and Description
abstract java.util.concurrent.CompletableFuture<IAuthenticationResult> acquireTokenForManagedIdentity(ManagedIdentityParameters parameters)

Acquires tokens from the configured managed identity on an azure resource.

Method Details

acquireTokenForManagedIdentity

public abstract CompletableFuture acquireTokenForManagedIdentity(ManagedIdentityParameters parameters)

Acquires tokens from the configured managed identity on an azure resource.

Parameters:

parameters - instance of ManagedIdentityParameters

Returns:

CompletableFuture containing an IAuthenticationResult

Throws:

java.lang.Exception

Applies to