public static class InteractiveRequestParameters.InteractiveRequestParametersBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InteractiveRequestParameters |
build() |
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
claimsChallenge(String claimsChallenge)
Used when a token request fails and the response has a challenge string
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
domainHint(String domainHint)
Provides a hint about the tenant or domain that the user should use to sign in.
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
extraQueryParameters(Map<String,String> extraQueryParameters)
Adds additional query parameters to the token request
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
httpPollingTimeoutInSeconds(int httpPollingTimeoutInSeconds)
The amount of time in seconds that the library will wait for an authentication result.
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
instanceAware(boolean instanceAware)
If set to true, the authorization result will contain the authority for the user's home cloud, and this authority
will be used for the token request instead of the authority set in the application.
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
loginHint(String loginHint)
Can be used to pre-fill the username/email address field of the sign-in page for the user,
if you know the username/email address ahead of time.
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
prompt(Prompt prompt)
Indicate the type of user interaction that is required.
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
proofOfPossession(HttpMethod httpMethod,
URI uri,
String nonce)
Sets the PopParameters for this request, allowing the request to retrieve proof-of-possession tokens rather than bearer tokens
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
redirectUri(URI redirectUri)
Redirect URI where MSAL will listen to for the authorization code returned by Azure AD.
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
scopes(Set<String> scopes)
Scopes that the application is requesting access to and the user will consent to.
|
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
systemBrowserOptions(SystemBrowserOptions systemBrowserOptions)
Sets
SystemBrowserOptions to be used by the PublicClientApplication |
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
tenant(String tenant)
Overrides the tenant value in the authority URL for this request
|
String |
toString() |
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
windowHandle(long windowHandle)
The parent window handle used to open UI elements with the correct parent
|
public InteractiveRequestParameters.InteractiveRequestParametersBuilder proofOfPossession(HttpMethod httpMethod, URI uri, String nonce)
For more information, see PopParameters and https://aka.ms/msal4j-pop
httpMethod - a valid HTTP method, such as "GET" or "POST"uri - the URI on the downstream protected API which the application is trying to access, e.g. https://graph.microsoft.com/beta/me/profilenonce - a string obtained by calling the resource (e.g. Microsoft Graph) un-authenticated and parsing the WWW-Authenticate header associated with pop authentication scheme and extracting the nonce parameter, or, on subsequent calls, by parsing the Autheticate-Info header and extracting the nextnonce parameter.public InteractiveRequestParameters.InteractiveRequestParametersBuilder redirectUri(URI redirectUri)
Cannot be null.
public InteractiveRequestParameters.InteractiveRequestParametersBuilder claims(ClaimsRequest claims)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder scopes(Set<String> scopes)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder prompt(Prompt prompt)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder loginHint(String loginHint)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder domainHint(String domainHint)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder systemBrowserOptions(SystemBrowserOptions systemBrowserOptions)
SystemBrowserOptions to be used by the PublicClientApplicationpublic InteractiveRequestParameters.InteractiveRequestParametersBuilder claimsChallenge(String claimsChallenge)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder tenant(String tenant)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder httpPollingTimeoutInSeconds(int httpPollingTimeoutInSeconds)
If this timeout is set to 0 or less it will be ignored, and the library will use a 1-second timeout instead
public InteractiveRequestParameters.InteractiveRequestParametersBuilder instanceAware(boolean instanceAware)
public InteractiveRequestParameters.InteractiveRequestParametersBuilder windowHandle(long windowHandle)
For browser scenarios and Windows console applications, this value should not need to be set
For Windows console applications, MSAL Java will attempt to discover the console's window handle if this parameter is not set
For scenarios where MSAL Java is responsible for opening UI elements (such as when using MSALRuntime), this parameter is required and an exception will be thrown if not set
public InteractiveRequestParameters build()
Copyright © 2013–2025. All rights reserved.