Package com.pingidentity.sdk.password
Interface ChallengeablePasswordCredential
-
public interface ChallengeablePasswordCredentialImplemented by aPasswordCredentialValidatorto support 2-Factor authentication using a challenge question.- Since:
- 7.1
- See Also:
PasswordCredentialValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PasswordChallengeResultchallenge(String username, String password, Object state)Challenge a user to answer a security question.
-
-
-
Method Detail
-
challenge
PasswordChallengeResult challenge(String username, String password, Object state)
Challenge a user to answer a security question.- Parameters:
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.- Returns:
- PasswordChallengeResult an object containing attributes returned as a result of this challenge.
- Throws:
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.
-
-