public class AuthenticationContinuation extends java.lang.Object implements CognitoIdentityProviderContinuation<java.lang.String>
| 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 |
|---|
AuthenticationContinuation(CognitoUser user,
android.content.Context context,
boolean runInBackground,
AuthenticationHandler callback)
Constructs a new continuation in the authentication process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
continueTask()
Continues the authentications process by responding to the "PASSWORD_VERIFIER" challenge with
username and password.
|
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. |
java.lang.String |
getParameters()
Returns the parameters required for this continuation.
|
void |
setAuthenticationDetails(AuthenticationDetails authenticationDetails)
Set details required to continue with this authentication.
|
void |
setClientMetaData(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
Mutator for
clientMetadata. |
public static final boolean RUN_IN_BACKGROUND
public static final boolean RUN_IN_CURRENT
public AuthenticationContinuation(CognitoUser user, android.content.Context context, boolean runInBackground, AuthenticationHandler callback)
user - REQUIRED: Reference to the CognitoUser object.context - REQUIRED: Application context to manage threads.runInBackground - REQUIRED: Represents where this continuation has to run.callback - REQUIRED: Callback to interact with the app.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 java.lang.String getParameters()
getParameters in interface CognitoIdentityProviderContinuation<java.lang.String>public void continueTask()
continueTask in interface CognitoIdentityProviderContinuation<java.lang.String>public void setAuthenticationDetails(AuthenticationDetails authenticationDetails)
authenticationDetails - @see AuthenticationDetailsCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.