public class UserFederatedIdentityCredentialParameters extends Object
Can be used as parameter to
ConfidentialClientApplication.acquireToken(UserFederatedIdentityCredentialParameters)
| Modifier and Type | Class and Description |
|---|---|
static class |
UserFederatedIdentityCredentialParameters.UserFederatedIdentityCredentialParametersBuilder |
| Modifier and Type | Method and Description |
|---|---|
String |
assertion() |
static UserFederatedIdentityCredentialParameters.UserFederatedIdentityCredentialParametersBuilder |
builder(Set<String> scopes,
String username,
String assertion)
Builder for
UserFederatedIdentityCredentialParameters using a UPN (User Principal Name). |
static UserFederatedIdentityCredentialParameters.UserFederatedIdentityCredentialParametersBuilder |
builder(Set<String> scopes,
UUID userObjectId,
String assertion)
Builder for
UserFederatedIdentityCredentialParameters using a user Object ID. |
ClaimsRequest |
claims()
Gets the claims request parameter that will be sent with the authentication request.
|
String |
clientClaims()
Client-originated claims set via
UserFederatedIdentityCredentialParameters.UserFederatedIdentityCredentialParametersBuilder.claimsFromClient(String). |
String |
computeExtCacheKeyHash()
Computes the extended cache key hash from all cache key components, or an empty string when
there are none.
|
Map<String,String> |
extraHttpHeaders()
Gets additional HTTP headers to be included in the token request.
|
Map<String,String> |
extraQueryParameters()
Deprecated.
Present only to satisfy the
IAcquireTokenParameters interface contract.
Not recommended for use — this API is scheduled for removal across all parameter classes
and will be replaced by a new mechanism in a future release. |
boolean |
forceRefresh() |
Set<String> |
scopes()
Gets the set of scopes (permissions) requested for the access token.
|
String |
tenant()
Gets the tenant identifier for the token request.
|
String |
username() |
UUID |
userObjectId() |
public static UserFederatedIdentityCredentialParameters.UserFederatedIdentityCredentialParametersBuilder builder(Set<String> scopes, String username, String assertion)
UserFederatedIdentityCredentialParameters using a UPN (User Principal Name).scopes - scopes application is requesting access tousername - the UPN of the target user (e.g., "user@contoso.com")assertion - the federated identity credential assertion (JWT) obtained from Leg 2public static UserFederatedIdentityCredentialParameters.UserFederatedIdentityCredentialParametersBuilder builder(Set<String> scopes, UUID userObjectId, String assertion)
UserFederatedIdentityCredentialParameters using a user Object ID.scopes - scopes application is requesting access touserObjectId - the Object ID (OID) of the target userassertion - the federated identity credential assertion (JWT) obtained from Leg 2public Set<String> scopes()
Scopes represent the permissions that the application is requesting access to.
public String username()
public UUID userObjectId()
public String assertion()
public boolean forceRefresh()
public ClaimsRequest claims()
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.
ClaimsRequest object containing the requested claims, or null if no claims are specified.public Map<String,String> extraHttpHeaders()
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.
@Deprecated public Map<String,String> extraQueryParameters()
IAcquireTokenParameters interface contract.
Not recommended for use — this API is scheduled for removal across all parameter classes
and will be replaced by a new mechanism in a future release.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.
public String tenant()
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".
public String clientClaims()
UserFederatedIdentityCredentialParameters.UserFederatedIdentityCredentialParametersBuilder.claimsFromClient(String).
Forwarded to the token endpoint as the OAuth claims parameter and used as part of the
extended cache key so that distinct claim values are cached separately.public String computeExtCacheKeyHash()
Copyright © 2013–2026. All rights reserved.