OnBehalfOfParameters.OnBehalfOfParametersBuilder Class
- java.
lang. Object - com.
microsoft. aad. msal4j. OnBehalfOfParameters. OnBehalfOfParametersBuilder
- com.
public static class OnBehalfOfParameters.OnBehalfOfParametersBuilder
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
On |
build() |
|
On |
claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims |
|
On |
claimsFromClient(String claimsJson)
Specifies client-originated claims (a raw JSON object string) to forward to the token endpoint as the OAuth |
|
On |
extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request |
|
On |
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.
Adds additional parameters to the token request |
|
On |
scopes(Set<String> scopes) |
|
On |
skipCache(Boolean skipCache)
Indicates whether the request should skip looking into the token cache. |
|
On |
tenant(String tenant)
Overrides the tenant value in the authority URL for this request |
| java.lang.String | toString() |
|
On |
userAssertion(IUserAssertion userAssertion) |
Methods inherited from java.lang.Object
Method Details
build
public OnBehalfOfParameters build()
claims
public OnBehalfOfParameters.OnBehalfOfParametersBuilder claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
Parameters:
claimsFromClient
public 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. Unlike claims(ClaimsRequest claims) (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.
Parameters:
Returns:
extraHttpHeaders
public OnBehalfOfParameters.OnBehalfOfParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request
Parameters:
extraQueryParameters
public OnBehalfOfParameters.OnBehalfOfParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)
Deprecated
Adds additional parameters to the token request
Parameters:
scopes
public OnBehalfOfParameters.OnBehalfOfParametersBuilder scopes(Set<String> scopes)
Parameters:
skipCache
public OnBehalfOfParameters.OnBehalfOfParametersBuilder skipCache(Boolean skipCache)
Indicates whether the request should skip looking into the token cache. Be default it is set to false.
Parameters:
tenant
public OnBehalfOfParameters.OnBehalfOfParametersBuilder tenant(String tenant)
Overrides the tenant value in the authority URL for this request
Parameters:
toString
public String toString()
Overrides:
OnBehalfOfParameters.OnBehalfOfParametersBuilder.toString()userAssertion
public OnBehalfOfParameters.OnBehalfOfParametersBuilder userAssertion(IUserAssertion userAssertion)
Parameters: