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 |
extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request |
On |
extraQueryParameters(Map<String,String> extraQueryParameters)
Adds additional parameters to the token request |
On |
scopes(@NonNull 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(@NonNull 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:
Returns:
this
.extraHttpHeaders
public OnBehalfOfParameters.OnBehalfOfParametersBuilder extraHttpHeaders(Map
Adds additional headers to the token request
Parameters:
Returns:
this
.extraQueryParameters
public OnBehalfOfParameters.OnBehalfOfParametersBuilder extraQueryParameters(Map
Adds additional parameters to the token request
Parameters:
Returns:
this
.scopes
public OnBehalfOfParameters.OnBehalfOfParametersBuilder scopes(@NonNull Set
Parameters:
Returns:
this
.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:
Returns:
this
.tenant
public OnBehalfOfParameters.OnBehalfOfParametersBuilder tenant(String tenant)
Overrides the tenant value in the authority URL for this request
Parameters:
Returns:
this
.toString
public String toString()
Overrides:
OnBehalfOfParameters.OnBehalfOfParametersBuilder.toString()userAssertion
public OnBehalfOfParameters.OnBehalfOfParametersBuilder userAssertion(@NonNull IUserAssertion userAssertion)
Parameters:
Returns:
this
.