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) |
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
For more information, see
PopParameters and https://aka.ms/msal4j-pop |
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
redirectUri(@NonNull 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
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.InteractiveRequestParametersBuilder proofOfPossession(HttpMethod httpMethod, URI uri, String nonce)
PopParameters and https://aka.ms/msal4j-pophttpMethod - 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(@NonNull @NonNull URI redirectUri)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder claims(ClaimsRequest claims)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder scopes(Set<String> scopes)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder prompt(Prompt prompt)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder loginHint(String loginHint)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder domainHint(String domainHint)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder systemBrowserOptions(SystemBrowserOptions systemBrowserOptions)
SystemBrowserOptions to be used by the PublicClientApplicationthis.public InteractiveRequestParameters.InteractiveRequestParametersBuilder claimsChallenge(String claimsChallenge)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder tenant(String tenant)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder httpPollingTimeoutInSeconds(int httpPollingTimeoutInSeconds)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder instanceAware(boolean instanceAware)
this.public InteractiveRequestParameters.InteractiveRequestParametersBuilder windowHandle(long windowHandle)
this.public InteractiveRequestParameters build()
Copyright © 2013–2025. All rights reserved.