SystemBrowserOptions.SystemBrowserOptionsBuilder Class

  • java.lang.Object
    • com.microsoft.aad.msal4j.SystemBrowserOptions.SystemBrowserOptionsBuilder

public static class SystemBrowserOptions.SystemBrowserOptionsBuilder

Method Summary

Modifier and Type Method and Description
SystemBrowserOptionsBuilder browserRedirectError(URI browserRedirectError)

When the the user finishes authenticating, but an error occurred, MSAL will redirect the browser to the given URI.

SystemBrowserOptionsBuilder browserRedirectSuccess(URI browserRedirectSuccess)

When the user finishes authenticating, MSAL will redirect the browser to the given URI.

SystemBrowserOptions build()
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.

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

SystemBrowserOptionsBuilder 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

browserRedirectError

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:

browserRedirectSuccess

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:

htmlMessageError

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:

htmlMessageSuccess

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:

openBrowserAction

Returns:

this.

toString

public String toString()

Overrides:

SystemBrowserOptions.SystemBrowserOptionsBuilder.toString()

Applies to