public class MultiFactorAuthenticationContinuation extends Object implements CognitoIdentityProviderContinuation<CognitoUserCodeDeliveryDetails>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
RUN_IN_BACKGROUND
Run in background.
|
static boolean |
RUN_IN_CURRENT
Run on current thread.
|
| Constructor and Description |
|---|
MultiFactorAuthenticationContinuation(CognitoUser user,
android.content.Context context,
RespondToAuthChallengeResult challenge,
boolean runInBackground,
AuthenticationHandler callback)
Constructs a multi-factor authentication continuation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
continueTask()
Call this to continue with the authentication process.
|
CognitoUserCodeDeliveryDetails |
getParameters()
This method returns the medium where this multi-factor authentication code was sent.
|
void |
setMfaCode(String mfaCode)
Add the multi-factor authentication code.
|
public static final boolean RUN_IN_BACKGROUND
public static final boolean RUN_IN_CURRENT
public MultiFactorAuthenticationContinuation(CognitoUser user, android.content.Context context, RespondToAuthChallengeResult challenge, boolean runInBackground, AuthenticationHandler callback)
user - REQUIRED: Reference to the CognitoUser object.challenge - REQUIRED: Contains the MFA Challenge.runInBackground - REQUIRED: Represents where this continuation has to run.callback - REQUIRED: Callback to interact with the app.context - REQUIRED: The android context.public CognitoUserCodeDeliveryDetails getParameters()
getParameters in interface CognitoIdentityProviderContinuation<CognitoUserCodeDeliveryDetails>public void continueTask()
continueTask in interface CognitoIdentityProviderContinuation<CognitoUserCodeDeliveryDetails>public void setMfaCode(String mfaCode)
mfaCode - REQIURED: The MFA code sent to the user.Copyright © 2020. All rights reserved.