ManagedIdentityParameters Class
- java.
lang. Object - com.
microsoft. aad. msal4j. ManagedIdentityParameters
- com.
Implements
public class ManagedIdentityParameters
implements com.microsoft.aad.msal4j.IAcquireTokenParameters
Object containing parameters for managed identity flow. Can be used as parameter to acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters)
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Managed |
builder(String resource)
Builder for ManagedIdentityParameters |
|
Claims |
claims()
Gets the claims request parameter that will be sent with the authentication request. |
| java.util.Map<java.lang.String,java.lang.String> |
extraHttpHeaders()
Gets additional HTTP headers to be included in the token request. |
| java.util.Map<java.lang.String,java.lang.String> |
extraQueryParameters()
Gets additional query parameters to be included in the token request. |
| boolean | forceRefresh() |
| java.lang.String | resource() |
| java.lang.String | revokedTokenHash() |
| java.util.Set<java.lang.String> |
scopes()
Gets the set of scopes (permissions) requested for the access token. |
| java.lang.String |
tenant()
Gets the tenant identifier for the token request. |
Methods inherited from java.lang.Object
Method Details
builder
public static ManagedIdentityParameters.ManagedIdentityParametersBuilder builder(String resource)
Builder for ManagedIdentityParameters
Parameters:
Returns:
claims
public ClaimsRequest claims()
Gets the claims request parameter that will be sent with the authentication request.
The claims request parameter can be used to request specific claims to be returned in the token, to request MFA authentication, or to control other aspects of token issuance.
extraHttpHeaders
public Map<String,String> extraHttpHeaders()
Gets additional HTTP headers to be included in the token request.
These headers will be added to the HTTP requests sent to the token endpoint. This can be useful for scenarios requiring custom headers for proxies or for diagnostic purposes.
extraQueryParameters
public Map<String,String> extraQueryParameters()
Gets additional query parameters to be included in the token request.
These parameters will be added to the query string in requests to the authorization and token endpoints. This can be useful for scenarios requiring custom parameters that aren't explicitly supported in the library.
forceRefresh
public boolean forceRefresh()
resource
public String resource()
revokedTokenHash
public String revokedTokenHash()
scopes
public Set<String> scopes()
Gets the set of scopes (permissions) requested for the access token.
Scopes represent the permissions that the application is requesting access to.
tenant
public String tenant()
Gets the tenant identifier for the token request.
When specified, this value overrides the tenant specified in the application's authority URL. It can be a tenant ID (GUID), domain name, or one of the special values like "common" or "organizations".