Interface ChallengeablePasswordCredential


public interface ChallengeablePasswordCredential
Implemented by a PasswordCredentialValidator to support 2-Factor authentication using a challenge question.
Since:
7.1
See Also:
  • Method Details

    • 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 in
      password - the user's password
      state - 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 errors
      PasswordCredentialValidatorAuthnException - 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.