public class ChooseMfaContinuation extends ChallengeContinuation
These challenges are presented when the user has multiple MFA's setup (registered) and enabled, and none of them are set as preferred.
RUN_IN_BACKGROUND, RUN_IN_CURRENT| Constructor and Description | 
|---|
| ChooseMfaContinuation(CognitoUser user,
                     android.content.Context context,
                     java.lang.String username,
                     java.lang.String clientId,
                     java.lang.String secretHash,
                     com.amazonaws.services.cognitoidentityprovider.model.RespondToAuthChallengeResult challengeResult,
                     boolean runInBackground,
                     AuthenticationHandler callback)Constructs a new continuation for multiple user MFA's. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | continueTask()Continue the authentication process with the set MFA option. | 
| java.util.List<java.lang.String> | getMfaOptions()Returns MFA options for a user to continue to authenticate. | 
| void | setMfaOption(java.lang.String option)Set the response to the MFA select request. | 
getChallengeName, getClientMetaData, getParameters, setChallengeResponse, setClientMetaData, setResponseSessionCodepublic ChooseMfaContinuation(CognitoUser user, android.content.Context context, java.lang.String username, java.lang.String clientId, java.lang.String secretHash, com.amazonaws.services.cognitoidentityprovider.model.RespondToAuthChallengeResult challengeResult, boolean runInBackground, AuthenticationHandler callback)
user - REQUIRED: Reference to the CognitoUser object.context - REQUIRED: The android context.username - REQUIRED: The username.clientId - REQUIRED: The clientId.secretHash - REQUIRED: The secret hash.challengeResult - REQUIRED: The response from the previous auth step.runInBackground - REQUIRED: Represents where this continuation has to run.callback - REQUIRED: Callback to interact with the app.public java.util.List<java.lang.String> getMfaOptions()
public void setMfaOption(java.lang.String option)
option - MFA option picked by the user.public void continueTask()
continueTask in interface CognitoIdentityProviderContinuation<java.util.Map<java.lang.String,java.lang.String>>continueTask in class ChallengeContinuationCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.