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 Details

    • ExternalAuthenticationFailed

      public ExternalAuthenticationFailed()
  • Method Details

    • 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 with setUserMessageKey() or the localized error message can be directly set with setUserMessage().
    • 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.