Class ExternalAuthenticationFailed
java.lang.Object
com.pingidentity.sdk.api.authn.model.state.ExternalAuthenticationFailed
An API state model containing additional details for states in which a external authentication has failed.
- Since:
- 10.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Get the error code.Get the URL of the error page if one was defined in the adapter configuration.Get the developer-facing error message.Get the user-facing error message.Get the user-facing error message key.voidSet the error code.voidsetErrorUrl(String errorUrl) Set the URL of the error page if one was defined in the adapter configuration.voidsetMessage(String message) Set the developer-facing error message.voidsetUserMessage(String userMessage) Set the user-facing error message.voidsetUserMessageKey(String userMessageKey) Set the user-facing error message key.
-
Constructor Details
-
ExternalAuthenticationFailed
public ExternalAuthenticationFailed()
-
-
Method Details
-
getCode
Get the error code. -
setCode
Set the error code. -
getMessage
Get the developer-facing error message. -
setMessage
Set the developer-facing error message. -
getUserMessage
Get the user-facing error message. A user-facing error message should be provided for any error likely to be displayed to the end user. A localizable message key can be provided withsetUserMessageKey()or the localized error message can be directly set withsetUserMessage(). -
setUserMessage
Set the user-facing error message. Where possible, the message should be user-friendly and localized. -
setUserMessageKey
Set the user-facing error message key. In the JSON serialization this key will automatically be converted to a localized string if a corresponding message is defined in the authn-api-messages or pingfederate-messages properties file for the user's locale. -
getUserMessageKey
Get the user-facing error message key. -
getErrorUrl
Get the URL of the error page if one was defined in the adapter configuration. -
setErrorUrl
Set the URL of the error page if one was defined in the adapter configuration.
-