public static class OnBehalfOfParameters.OnBehalfOfParametersBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
OnBehalfOfParameters |
build() |
OnBehalfOfParameters.OnBehalfOfParametersBuilder |
claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
|
OnBehalfOfParameters.OnBehalfOfParametersBuilder |
claimsFromClient(String claimsJson)
Specifies client-originated claims (a raw JSON object string) to forward to the token
endpoint as the OAuth
claims request parameter. |
OnBehalfOfParameters.OnBehalfOfParametersBuilder |
extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request
|
OnBehalfOfParameters.OnBehalfOfParametersBuilder |
extraQueryParameters(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.
|
OnBehalfOfParameters.OnBehalfOfParametersBuilder |
scopes(Set<String> scopes) |
OnBehalfOfParameters.OnBehalfOfParametersBuilder |
skipCache(Boolean skipCache)
Indicates whether the request should skip looking into the token cache.
|
OnBehalfOfParameters.OnBehalfOfParametersBuilder |
tenant(String tenant)
Overrides the tenant value in the authority URL for this request
|
String |
toString() |
OnBehalfOfParameters.OnBehalfOfParametersBuilder |
userAssertion(IUserAssertion userAssertion) |
public OnBehalfOfParameters.OnBehalfOfParametersBuilder scopes(Set<String> scopes)
public OnBehalfOfParameters.OnBehalfOfParametersBuilder skipCache(Boolean skipCache)
public OnBehalfOfParameters.OnBehalfOfParametersBuilder userAssertion(IUserAssertion userAssertion)
public OnBehalfOfParameters.OnBehalfOfParametersBuilder claims(ClaimsRequest claims)
public OnBehalfOfParameters.OnBehalfOfParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)
@Deprecated public OnBehalfOfParameters.OnBehalfOfParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)
public OnBehalfOfParameters.OnBehalfOfParametersBuilder tenant(String tenant)
public OnBehalfOfParameters.OnBehalfOfParametersBuilder claimsFromClient(String claimsJson)
claims request parameter. Unlike claims(ClaimsRequest)
(server-issued claims challenges, which bypass the cache), tokens acquired with client claims
are cached and the cache entry is keyed on the claims value, so distinct claim values produce
separate cache entries. Use stable, non-dynamic values to avoid cache fragmentation. Send the identical value on every
request for a given token; because the raw value is part of the cache key, changing or
omitting it routes the request to a different cache partition.
A blank value is ignored; an invalid JSON object throws MsalClientException.claimsJson - a valid JSON object string containing the client claimspublic OnBehalfOfParameters build()
Copyright © 2013–2026. All rights reserved.