public class ClientCredentialParameters extends Object
ConfidentialClientApplication.acquireToken(ClientCredentialParameters)| Modifier and Type | Class and Description |
|---|---|
static class |
ClientCredentialParameters.ClientCredentialParametersBuilder |
| Modifier and Type | Method and Description |
|---|---|
static ClientCredentialParameters.ClientCredentialParametersBuilder |
builder(Set<String> scopes)
Builder for
ClientCredentialParameters |
ClaimsRequest |
claims()
Gets the claims request parameter that will be sent with the authentication request.
|
String |
clientClaims()
Client-originated claims set via
ClientCredentialParameters.ClientCredentialParametersBuilder.claimsFromClient(String). |
IClientCredential |
clientCredential() |
String |
computeExtCacheKeyHash()
Computes the extended cache key hash from all cache key components.
|
Map<String,String> |
extraHttpHeaders()
Gets additional HTTP headers to be included in the token request.
|
Map<String,String> |
extraQueryParameters()
Deprecated.
Not recommended for production scenarios. It will be removed in a future release, and the behavior may be replaced by a new API.
|
String |
fmiPath()
Gets the FMI (Federated Managed Identity) path for agent identity scenarios.
|
Set<String> |
scopes()
Gets the set of scopes (permissions) requested for the access token.
|
Boolean |
skipCache() |
String |
tenant()
Gets the tenant identifier for the token request.
|
public static ClientCredentialParameters.ClientCredentialParametersBuilder builder(Set<String> scopes)
ClientCredentialParametersscopes - scopes application is requesting access topublic Set<String> scopes()
Scopes represent the permissions that the application is requesting access to.
public Boolean skipCache()
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()
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 IClientCredential clientCredential()
public String fmiPath()
fmi_path is sent as a body parameter in the client credentials token request,
which scopes the resulting token to a specific agent identity.public String clientClaims()
ClientCredentialParameters.ClientCredentialParametersBuilder.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()
The result is memoized since ClientCredentialParameters is immutable after construction.
Used by both cache writes (TokenCache) and cache reads (silent lookup).
Copyright © 2013–2026. All rights reserved.