BrowserCustomizationOptions Class
- java.
lang. Object - com.
azure. identity. BrowserCustomizationOptions
- com.
public class BrowserCustomizationOptions
Represent Options to customize browser view.
Constructor Summary
Constructor | Description |
---|---|
BrowserCustomizationOptions() |
Creates an instance of Browser |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage()
Get the configured message which the browser will show to the user when the user finishes authenticating, but an error occurred. |
String |
getSuccessMessage()
Get the configured message which the browser will show to the user when the user finishes authenticating successfully. |
Browser |
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. |
Browser |
setSuccessMessage(String successMessage)
Configures the property to set the success message which the browser will show to the user upon successful authentication. |
Methods inherited from java.lang.Object
Constructor Details
BrowserCustomizationOptions
public BrowserCustomizationOptions()
Creates an instance of BrowserCustomizationOptions.
Method Details
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:
getSuccessMessage
public String getSuccessMessage()
Get the configured message which the browser will show to the user when the user finishes authenticating successfully.
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java