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.
|
java.util.Map<java.lang.String,java.lang.String> |
getClientMetaData()
clientMetadata is a map of custom key-value pairs that you can provide as input for any
custom work flows. |
CognitoUserCodeDeliveryDetails |
getParameters()
This method returns the medium where this multi-factor authentication code was sent.
|
void |
setClientMetaData(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
Mutator for
clientMetadata . |
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 java.util.Map<java.lang.String,java.lang.String> getClientMetaData()
clientMetadata
is a map of custom key-value pairs that you can provide as input for any
custom work flows. Accessor method for clientMetadata
.
public void setClientMetaData(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
clientMetadata
.clientMetadata
- Metadata to be passed as input to the lambda triggers.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 © 2018 Amazon Web Services, Inc. All Rights Reserved.