public class ForgotPasswordContinuation 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 |
---|
ForgotPasswordContinuation(CognitoUser user,
CognitoUserCodeDeliveryDetails parameters,
boolean runInBackground,
ForgotPasswordHandler callback)
Constructs a new Continuation for forgot password process.
|
Modifier and Type | Method and Description |
---|---|
void |
continueTask()
Call this method to continue with the forgot password processing.s
|
CognitoUserCodeDeliveryDetails |
getParameters()
Returns Continuation parameters.
|
void |
setClientMetadata(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
Sets clientMetadata for forgot password flows.
|
void |
setPassword(java.lang.String password)
Set the new password.
|
void |
setVerificationCode(java.lang.String verificationCode)
Set the verification code for this processing.
|
public static final boolean RUN_IN_BACKGROUND
public static final boolean RUN_IN_CURRENT
public ForgotPasswordContinuation(CognitoUser user, CognitoUserCodeDeliveryDetails parameters, boolean runInBackground, ForgotPasswordHandler callback)
user
- REQUIRED: Reference to the CognitoUser
object.parameters
- REQUIRED: Contains information about the medium and destination of the verification code.runInBackground
- REQUIRED: Represents where this continuation has to run.callback
- REQUIRED: Callback to interact with the app.public CognitoUserCodeDeliveryDetails getParameters()
getParameters
in interface CognitoIdentityProviderContinuation<CognitoUserCodeDeliveryDetails>
public void continueTask()
continueTask
in interface CognitoIdentityProviderContinuation<CognitoUserCodeDeliveryDetails>
public void setPassword(java.lang.String password)
password
- REQUIRED: The new password.public void setVerificationCode(java.lang.String verificationCode)
verificationCode
- REQUIRED: The verification code to set a new password.public void setClientMetadata(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
clientMetadata
- Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.