public class PasswordCredentialChallengeException extends PasswordCredentialValidatorAuthnException
Constructor and Description |
---|
PasswordCredentialChallengeException(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.
|
Modifier and Type | Method and Description |
---|---|
Object |
getState()
Get the preserved state
|
String |
getUsername()
Get the username name of the user attempting to sign in
|
getMessageKey, isRecoverable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PasswordCredentialChallengeException(boolean isRecoverable, String messageKey)
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 userpublic PasswordCredentialChallengeException(boolean isRecoverable, String messageKey, Throwable cause)
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 anypublic PasswordCredentialChallengeException(boolean isRecoverable, String messageKey, String username, Object state)
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.Copyright 2019 Ping Identity Corp. All rights reserved.