public class ManagedIdentityApplication extends AbstractApplicationBase implements IManagedIdentityApplication
IManagedIdentityApplication
Conditionally thread-safe
| Modifier and Type | Class and Description |
|---|---|
static class |
ManagedIdentityApplication.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_AUTHORITY |
authenticationAuthority, log, tokenCache| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<IAuthenticationResult> |
acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters)
Acquires tokens from the configured managed identity on an azure resource.
|
static ManagedIdentityApplication.Builder |
builder(ManagedIdentityId managedIdentityId)
Creates instance of Builder of ManagedIdentityApplication
|
String |
correlationId() |
ManagedIdentityId |
getManagedIdentityId() |
ManagedIdentitySourceType |
getManagedIdentitySource() |
static TokenCache |
getSharedTokenCache() |
IHttpClient |
httpClient()
Sets HTTP client to be used by the client application for all HTTP requests.
|
boolean |
logPii() |
Proxy |
proxy() |
SSLSocketFactory |
sslSocketFactory() |
connectTimeoutForDefaultHttpClient, correlationId, httpClient, logPii, proxy, readTimeoutForDefaultHttpClient, sslSocketFactorypublic static final String DEFAULT_AUTHORITY
public CompletableFuture<IAuthenticationResult> acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters) throws Exception
IManagedIdentityApplicationacquireTokenForManagedIdentity in interface IManagedIdentityApplicationmanagedIdentityParameters - instance of ManagedIdentityParametersCompletableFuture containing an IAuthenticationResultExceptionpublic static ManagedIdentityApplication.Builder builder(ManagedIdentityId managedIdentityId)
managedIdentityId - ManagedIdentityId to specify if System Assigned or User Assigned
and provide id if it is user assigned.public ManagedIdentityId getManagedIdentityId()
public static TokenCache getSharedTokenCache()
public ManagedIdentitySourceType getManagedIdentitySource()
public boolean logPii()
public String correlationId()
public IHttpClient httpClient()
public Proxy proxy()
public SSLSocketFactory sslSocketFactory()
Copyright © 2013–2024. All rights reserved.