public class MultiFactorAuthenticationContinuation extends java.lang.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,
com.amazonaws.services.cognitoidentityprovider.model.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(java.lang.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, com.amazonaws.services.cognitoidentityprovider.model.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(java.lang.String mfaCode)
mfaCode
- REQIURED: The MFA code sent to the user.Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.