Class ExternalAuthenticationFailed
- java.lang.Object
-
- com.pingidentity.sdk.api.authn.model.state.ExternalAuthenticationFailed
-
public class ExternalAuthenticationFailed extends Object
An API state model containing additional details for states in which a external authentication has failed.- Since:
- 10.2
-
-
Constructor Summary
Constructors Constructor Description ExternalAuthenticationFailed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()Get the error code.StringgetErrorUrl()Get the URL of the error page if one was defined in the adapter configuration.StringgetMessage()Get the developer-facing error message.StringgetUserMessage()Get the user-facing error message.StringgetUserMessageKey()Get the user-facing error message key.voidsetCode(String code)Set 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.
-
-
-
Method Detail
-
getCode
public String getCode()
Get the error code.
-
setCode
public void setCode(String code)
Set the error code.
-
getMessage
public String getMessage()
Get the developer-facing error message.
-
setMessage
public void setMessage(String message)
Set the developer-facing error message.
-
getUserMessage
public String 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
public void setUserMessage(String userMessage)
Set the user-facing error message. Where possible, the message should be user-friendly and localized.
-
setUserMessageKey
public void setUserMessageKey(String userMessageKey)
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
public String getUserMessageKey()
Get the user-facing error message key.
-
getErrorUrl
public String getErrorUrl()
Get the URL of the error page if one was defined in the adapter configuration.
-
setErrorUrl
public void setErrorUrl(String errorUrl)
Set the URL of the error page if one was defined in the adapter configuration.
-
-