Interface ChallengeablePasswordCredential

    • 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 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.