Class AuthenticationFailed
- java.lang.Object
-
- com.pingidentity.sdk.api.authn.model.state.AuthenticationFailed
-
- All Implemented Interfaces:
Serializable
public class AuthenticationFailed extends Object implements Serializable
The model for theFAILEDstate.- Since:
- 9.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationFailed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAdapterId()Get the adapter ID associated with the error, if defined.StringgetCode()Get the error code.StringgetMessage()Get the developer-facing error message.StringgetTrackingId()Get the tracking ID associated with the error.StringgetUserMessage()Get the user-facing error message.StringgetUserMessageKey()Get the user-facing error message key.voidsetAdapterId(String adapterId)Set the adapter ID associated with the error.voidsetCode(String code)Set the error code.voidsetMessage(String message)Set the developer-facing error message.voidsetTrackingId(String trackingId)Set the tracking ID associated with the error.voidsetUserMessage(String userMessage)Directly 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. If possible, this error message should be user-friendly and localized. A localizable message key can be provided withsetUserMessageKey()or the localized error message can be directly set withsetUserMessage().
-
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 the pingfederate-messages properties file for the user's locale.
-
getUserMessageKey
public String getUserMessageKey()
Get the user-facing error message key.
-
setUserMessage
public void setUserMessage(String userMessage)
Directly set the user-facing error message. Where possible, the message should be user-friendly and localized.
-
getAdapterId
public String getAdapterId()
Get the adapter ID associated with the error, if defined.
-
setAdapterId
public void setAdapterId(String adapterId)
Set the adapter ID associated with the error.
-
getTrackingId
public String getTrackingId()
Get the tracking ID associated with the error.
-
setTrackingId
public void setTrackingId(String trackingId)
Set the tracking ID associated with the error.
-
-