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()
Gets the correlation ID used for tracing requests through the authentication system.
|
List<String> |
getClientCapabilities() |
ManagedIdentityId |
getManagedIdentityId() |
static ManagedIdentitySourceType |
getManagedIdentitySource()
Returns a
ManagedIdentitySourceType value, which is based primarily on environment variables set on the system. |
static TokenCache |
getSharedTokenCache() |
IHttpClient |
httpClient()
Gets the HTTP client used by the application for all HTTP requests.
|
boolean |
logPii()
Gets whether personally identifiable information (PII) is included in log messages.
|
Proxy |
proxy()
Gets the proxy configuration used by the application for network communication.
|
SSLSocketFactory |
sslSocketFactory()
Gets the SSL socket factory used by the application for secure network communication.
|
connectTimeoutForDefaultHttpClient, correlationId, httpClient, logPii, proxy, readTimeoutForDefaultHttpClient, sslSocketFactorypublic static final String DEFAULT_AUTHORITY
public static TokenCache getSharedTokenCache()
public ManagedIdentityId getManagedIdentityId()
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 static ManagedIdentitySourceType getManagedIdentitySource()
ManagedIdentitySourceType value, which is based primarily on environment variables set on the system.public boolean logPii()
public String correlationId()
public IHttpClient httpClient()
public Proxy proxy()
public SSLSocketFactory sslSocketFactory()
Copyright © 2013–2025. All rights reserved.