OnBehalfOfParameters Class
- java.
lang. Object - com.
microsoft. aad. msal4j. OnBehalfOfParameters
- com.
Implements
public class OnBehalfOfParameters
implements com.microsoft.aad.msal4j.IAcquireTokenParameters
Object containing parameters for On-Behalf-Of flow. Can be used as parameter to acquireToken(OnBehalfOfParameters parameters)
For more details, see https://aka.ms/msal4j-on-behalf-of
Method Summary
Modifier and Type | Method and Description |
---|---|
static
On |
builder(Set<String> scopes, UserAssertion userAssertion)
Builder for OnBehalfOfParameters |
Claims |
claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims |
java.util.Map<java.lang.String,java.lang.String> |
extraHttpHeaders()
Adds additional headers to the token request |
java.util.Map<java.lang.String,java.lang.String> |
extraQueryParameters()
Adds additional parameters to the token request |
@lombok.NonNull java.util.Set<java.lang.String> | scopes() |
java.lang.Boolean |
skipCache()
Indicates whether the request should skip looking into the token cache. |
java.lang.String |
tenant()
Overrides the tenant value in the authority URL for this request |
@lombok.NonNull com.microsoft.aad.msal4j.IUserAssertion | userAssertion() |
Methods inherited from java.lang.Object
Method Details
builder
public static OnBehalfOfParameters.OnBehalfOfParametersBuilder builder(Set
Builder for OnBehalfOfParameters
Parameters:
Returns:
claims
public ClaimsRequest claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
extraHttpHeaders
public Map
Adds additional headers to the token request
extraQueryParameters
public Map
Adds additional parameters to the token request
scopes
public @NonNull Set
skipCache
public Boolean skipCache()
Indicates whether the request should skip looking into the token cache. Be default it is set to false.
tenant
public String tenant()
Overrides the tenant value in the authority URL for this request
userAssertion
public @NonNull IUserAssertion userAssertion()