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.lang.String |
getParameters()
Returns the parameters required for this continuation.
|
void |
setAuthenticationDetails(AuthenticationDetails authenticationDetails)
Set details required to continue with this authentication.
|
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.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 AuthenticationDetails
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.