public class VerifyMfaContinuation extends Object implements CognitoIdentityProviderContinuation<Map<String,String>>
This is issued during an MFA setup (registration). MFA verification is necessary to complete new MFA setup process.
| 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 |
|---|
VerifyMfaContinuation(android.content.Context context,
String clientId,
CognitoUser user,
RegisterMfaHandler callback,
Map<String,String> mfaSetupDetails,
boolean useSessionToken,
String sessionToken,
boolean runInBackground)
Constructs a new continuation for MFA verification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
continueTask()
Continue with the MFA setup.
|
Map<String,String> |
getParameters()
Returns parameters for MFA setup.
|
void |
setVerificationResponse(String mfaVerificationCode,
String mfaFriendlyName)
Set the verification response.
|
public static final boolean RUN_IN_BACKGROUND
public static final boolean RUN_IN_CURRENT
public VerifyMfaContinuation(android.content.Context context,
String clientId,
CognitoUser user,
RegisterMfaHandler callback,
Map<String,String> mfaSetupDetails,
boolean useSessionToken,
String sessionToken,
boolean runInBackground)
context - REQUIRED: The android context.clientId - REQUIRED: The clientId.user - REQUIRED: Reference to the CognitoUser object.callback - REQUIRED: Callback to interact with the app.mfaSetupDetails - REQUIRED: Parameters to setup the new MFA.useSessionToken - REQUIRED: Indicates if a Session Token was used to start the registration.sessionToken - REQUIRED: Session Token.runInBackground - REQUIRED: Represents where this continuation has to run.public void setVerificationResponse(String mfaVerificationCode, String mfaFriendlyName)
mfaVerificationCode - Required: The TOTP code.mfaFriendlyName - Optional: The friendly name for the new TOTP device.public Map<String,String> getParameters()
getParameters in interface CognitoIdentityProviderContinuation<Map<String,String>>public void continueTask()
continueTask in interface CognitoIdentityProviderContinuation<Map<String,String>>Copyright © 2020. All rights reserved.