Package com.azure.identity
Class BrowserCustomizationOptions
java.lang.Object
com.azure.identity.BrowserCustomizationOptions
Represent Options to customize browser view.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the configured message which the browser will show to the user when the user finishes authenticating, but an error occurred.Get the configured message which the browser will show to the user when the user finishes authenticating successfully.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.setSuccessMessage
(String successMessage) Configures the property to set the success message which the browser will show to the user upon successful authentication.
-
Constructor Details
-
BrowserCustomizationOptions
public BrowserCustomizationOptions()
-
-
Method Details
-
setSuccessMessage
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
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
Get the configured message which the browser will show to the user when the user finishes authenticating successfully.- Returns:
- the string message.
-
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.
-