Package com.pingidentity.sdk.password
Class PasswordCredentialChallengeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pingidentity.sdk.password.PasswordValidationException
com.pingidentity.sdk.password.PasswordCredentialValidatorAuthnException
com.pingidentity.sdk.password.PasswordCredentialChallengeException
- All Implemented Interfaces:
Serializable
Runtime exception thrown when the server used for authentication needs to prompt the user to answer a challenge
question. This is used by servers using multi-factor authentication, such as RADIUS.
The message should be a key that exists in a file in the
<pf-root>/server/default/conf/language-packs/pingfederate-messages.properties to support localization and
internationalization.
- Since:
- 7.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordCredentialChallengeException(boolean isRecoverable, String messageKey) Create an instance for a user authentication challenge.PasswordCredentialChallengeException(boolean isRecoverable, String messageKey, String username, Object state) Create an instance for a user authentication challenge.PasswordCredentialChallengeException(boolean isRecoverable, String messageKey, Throwable cause) Create an instance for a user authentication challenge. -
Method Summary
Modifier and TypeMethodDescriptiongetState()Get the preserved stateGet the username name of the user attempting to sign inMethods inherited from class com.pingidentity.sdk.password.PasswordCredentialValidatorAuthnException
getAuditErrorMessage, getErrorSource, getMessage, getMessageKey, isRecoverableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PasswordCredentialChallengeException
Create an instance for a user authentication challenge.- Parameters:
isRecoverable- whether the exception represents a condition that can be corrected by the user, should be true in most casesmessageKey- the key for the localized message displayed to the user
-
PasswordCredentialChallengeException
public PasswordCredentialChallengeException(boolean isRecoverable, String messageKey, Throwable cause) Create an instance for a user authentication challenge.- Parameters:
isRecoverable- whether the exception represents a condition that can be corrected by the user (e.g., must reset password)messageKey- the key for the localized message displayed to the usercause- the cause of the exception, if any
-
PasswordCredentialChallengeException
public PasswordCredentialChallengeException(boolean isRecoverable, String messageKey, String username, Object state) Create an instance for a user authentication challenge.- Parameters:
isRecoverable- whether the exception represents a condition that can be corrected by the user (e.g., must reset password)messageKey- the key for the localized message displayed to the userusername- username name of the user attempting to sign instate- an opaque object containing state used to preserve state during a 2-Factor authentication.- Since:
- 8.0
-
-
Method Details
-
getState
Get the preserved state- Returns:
-
getUsername
Get the username name of the user attempting to sign in- Returns:
-