ManagedIdentityApplication Klasa
- java.
lang. Object - com.
microsoft. aad. msal4j. AbstractApplicationBase - com.
microsoft. aad. msal4j. ManagedIdentityApplication
- com.
- com.
Implementuje
public class ManagedIdentityApplication
extends AbstractApplicationBase
implements IManagedIdentityApplication
Klasa do użycia do uzyskiwania tokenów dla tożsamości zarządzanej. Aby uzyskać szczegółowe informacje, zobacz IManagedIdentityApplication
Warunkowo bezpieczne wątkowo
Podsumowanie metody
| Modyfikator i typ | Metoda i opis |
|---|---|
|
java.util.concurrent.CompletableFuture<IAuthentication |
acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters)
Uzyskuje tokeny ze skonfigurowanej tożsamości zarządzanej w zasobie platformy Azure. |
| static Builder |
builder(ManagedIdentityId managedIdentityId)
Tworzy wystąpienie konstruktora aplikacji tożsamości |
|
Managed |
getManagedIdentityId() |
|
static
Managed |
getManagedIdentitySource()
Zwraca wartość opartą ManagedIdentitySourceType głównie na zmiennych środowiskowych ustawionych w systemie. |
|
static
Token |
getSharedTokenCache() |
Metody dziedziczone z AbstractApplicationBase
Metody dziedziczone z java.lang.Object
Szczegóły metody
acquireTokenForManagedIdentity
public CompletableFuture<IAuthenticationResult> acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters)
Uzyskuje tokeny ze skonfigurowanej tożsamości zarządzanej w zasobie platformy Azure.
Parametry:
Zgłasza:
builder
public static ManagedIdentityApplication.Builder builder(ManagedIdentityId managedIdentityId)
Tworzy wystąpienie narzędzia Builder klasy ManagedIdentityApplication
Parametry:
Zwraca:
getManagedIdentityId
public ManagedIdentityId getManagedIdentityId()
getManagedIdentitySource
public static ManagedIdentitySourceType getManagedIdentitySource()
Zwraca wartość opartą ManagedIdentitySourceType głównie na zmiennych środowiskowych ustawionych w systemie.
Zwraca:
getSharedTokenCache
public static TokenCache getSharedTokenCache()