public interface ChallengeablePasswordCredential
PasswordCredentialValidator to support 2-Factor authentication using a challenge question.PasswordCredentialValidator| Modifier and Type | Method and Description |
|---|---|
PasswordChallengeResult |
challenge(String username,
String password,
Object state)
Challenge a user to answer a security question.
|
PasswordChallengeResult challenge(String username, String password, Object state)
username - name of the user attempting to sign inpassword - the user's passwordstate - an opaque object containing state used to preserve state during a 2-Factor authentication.PasswordValidationException - for system errorsPasswordCredentialValidatorAuthnException - for user authentication errors to prevent the user from answering a challenge question.PasswordCredentialChallengeException - to prompt or re-prompt the user to answer a challenge question.Copyright 2019 Ping Identity Corp. All rights reserved.