SystemBrowserOptions.SystemBrowserOptionsBuilder Class
- java.
lang. Object - com.
microsoft. aad. msal4j. SystemBrowserOptions. SystemBrowserOptionsBuilder
- com.
public static class SystemBrowserOptions.SystemBrowserOptionsBuilder
Method Summary
Modifier and Type | Method and Description |
---|---|
System |
browserRedirectError(URI browserRedirectError)
When the the user finishes authenticating, but an error occurred, MSAL will redirect the browser to the given URI. |
System |
browserRedirectSuccess(URI browserRedirectSuccess)
When the user finishes authenticating, MSAL will redirect the browser to the given URI. |
System |
build() |
System |
htmlMessageError(String htmlMessageError)
WHen the user finishes authenticating, but an error occurred, MSAL will respond with a Http 200 Ok message, which the browser will show to the user. |
System |
htmlMessageSuccess(String htmlMessageSuccess)
When the user finishes authenticating, MSAL will respond with a Http 200 OK message, which the browser will show to the user |
System |
openBrowserAction(OpenBrowserAction openBrowserAction)
Allows developers to implement their own logic for starting a browser and navigating to a specific Uri. |
java.lang.String | toString() |
Methods inherited from java.lang.Object
Method Details
browserRedirectError
public SystemBrowserOptions.SystemBrowserOptionsBuilder browserRedirectError(URI browserRedirectError)
When the the user finishes authenticating, but an error occurred, MSAL will redirect the browser to the given URI. Takes precedence over htmlMessageError
Parameters:
Returns:
this
.browserRedirectSuccess
public SystemBrowserOptions.SystemBrowserOptionsBuilder browserRedirectSuccess(URI browserRedirectSuccess)
When the user finishes authenticating, MSAL will redirect the browser to the given URI. Takes precedence over htmlMessageSuccess
Parameters:
Returns:
this
.build
public SystemBrowserOptions build()
htmlMessageError
public SystemBrowserOptions.SystemBrowserOptionsBuilder htmlMessageError(String htmlMessageError)
WHen the user finishes authenticating, but an error occurred, MSAL will respond with a Http 200 Ok message, which the browser will show to the user.
Parameters:
Returns:
this
.htmlMessageSuccess
public SystemBrowserOptions.SystemBrowserOptionsBuilder htmlMessageSuccess(String htmlMessageSuccess)
When the user finishes authenticating, MSAL will respond with a Http 200 OK message, which the browser will show to the user
Parameters:
Returns:
this
.openBrowserAction
public SystemBrowserOptions.SystemBrowserOptionsBuilder openBrowserAction(OpenBrowserAction openBrowserAction)
Allows developers to implement their own logic for starting a browser and navigating to a specific Uri. Msal will use this when opening the browser. If not set, the user configured browser will be used.
Parameters:
Returns:
this
.toString
public String toString()
Overrides:
SystemBrowserOptions.SystemBrowserOptionsBuilder.toString()