ManagedIdentityApplication 类
- java.
lang. Object - com.
microsoft. aad. msal4j. AbstractApplicationBase - com.
microsoft. aad. msal4j. ManagedIdentityApplication
- com.
- com.
实现
public class ManagedIdentityApplication
extends AbstractApplicationBase
implements IManagedIdentityApplication
用于获取托管标识的令牌的类。 有关详细信息,请参阅 IManagedIdentityApplication
有条件的线程安全
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
|
java.util.concurrent.CompletableFuture<IAuthentication |
acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters)
从 Azure 资源上配置的托管标识获取令牌。 |
| static Builder |
builder(ManagedIdentityId managedIdentityId)
创建托管 |
|
Managed |
getManagedIdentityId() |
|
static
Managed |
getManagedIdentitySource()
返回一个 ManagedIdentitySourceType 值,该值主要基于系统上设置的环境变量。 |
|
static
Token |
getSharedTokenCache() |
方法继承自 AbstractApplicationBase
方法继承自 java.lang.Object
方法详细信息
acquireTokenForManagedIdentity
public CompletableFuture<IAuthenticationResult> acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters)
从 Azure 资源上配置的托管标识获取令牌。
参数:
引发:
builder
public static ManagedIdentityApplication.Builder builder(ManagedIdentityId managedIdentityId)
创建 ManagedIdentityApplication 的 Builder 实例
参数:
返回:
getManagedIdentityId
public ManagedIdentityId getManagedIdentityId()
getManagedIdentitySource
public static ManagedIdentitySourceType getManagedIdentitySource()
返回一个 ManagedIdentitySourceType 值,该值主要基于系统上设置的环境变量。
返回:
getSharedTokenCache
public static TokenCache getSharedTokenCache()