public class VerifyMfaContinuation extends java.lang.Object implements CognitoIdentityProviderContinuation<java.util.Map<java.lang.String,java.lang.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,
java.lang.String clientId,
CognitoUser user,
RegisterMfaHandler callback,
java.util.Map<java.lang.String,java.lang.String> mfaSetupDetails,
boolean useSessionToken,
java.lang.String sessionToken,
boolean runInBackground)
Constructs a new continuation for MFA verification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
continueTask()
Continue with the MFA setup.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Returns parameters for MFA setup.
|
void |
setVerificationResponse(java.lang.String mfaVerificationCode,
java.lang.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,
java.lang.String clientId,
CognitoUser user,
RegisterMfaHandler callback,
java.util.Map<java.lang.String,java.lang.String> mfaSetupDetails,
boolean useSessionToken,
java.lang.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(java.lang.String mfaVerificationCode,
java.lang.String mfaFriendlyName)
mfaVerificationCode - Required: The TOTP code.mfaFriendlyName - Optional: The friendly name for the new TOTP device.public java.util.Map<java.lang.String,java.lang.String> getParameters()
getParameters in interface CognitoIdentityProviderContinuation<java.util.Map<java.lang.String,java.lang.String>>public void continueTask()
continueTask in interface CognitoIdentityProviderContinuation<java.util.Map<java.lang.String,java.lang.String>>Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.