Class BrowserCustomizationOptions

java.lang.Object
com.azure.identity.BrowserCustomizationOptions

public class BrowserCustomizationOptions extends Object
Represent Options to customize browser view.
  • Constructor Details

    • BrowserCustomizationOptions

      public BrowserCustomizationOptions()
      Creates an instance of BrowserCustomizationOptions.
  • Method Details

    • setSuccessMessage

      public BrowserCustomizationOptions setSuccessMessage(String successMessage)
      Configures the property to set the success message which the browser will show to the user upon successful authentication.
      Parameters:
      successMessage - the message to display when user finishes authenticating.
      Returns:
      the updated options.
    • setErrorMessage

      public BrowserCustomizationOptions setErrorMessage(String errorMessage)
      Configure the property to set error message which the browser will show to the user upon failed to acquire an access token. You can use a string format e.g. "An error has occurred: {0} details: {1}.", the details will be populated by the library.
      Parameters:
      errorMessage - the message to display when user finishes authenticating, but an error occurred.
      Returns:
      the updated options.
    • getSuccessMessage

      public String getSuccessMessage()
      Get the configured message which the browser will show to the user when the user finishes authenticating successfully.
      Returns:
      the string message.
    • getErrorMessage

      public String getErrorMessage()
      Get the configured message which the browser will show to the user when the user finishes authenticating, but an error occurred.
      Returns:
      the string message.