public class NewPasswordContinuation extends ChallengeContinuation
RUN_IN_BACKGROUND, RUN_IN_CURRENT| Constructor and Description | 
|---|
| NewPasswordContinuation(CognitoUser user,
                       android.content.Context context,
                       java.lang.String username,
                       java.lang.String clientId,
                       java.lang.String secretHash,
                       com.amazonaws.services.cognitoidentityprovider.model.RespondToAuthChallengeResult challengeResult,
                       boolean runInBackground,
                       AuthenticationHandler callback)Constructs a new continuation for new user sign-in. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | continueTask()Calls  of the parent after checking if all the required attributes have been set. | 
| java.util.Map<java.lang.String,java.lang.String> | getCurrentUserAttributes()Returns all current user attributes. | 
| java.util.List<java.lang.String> | getRequiredAttributes()Returns all required attributes to complete user sign-up. | 
| void | setPassword(java.lang.String userPassword)Set new user password, must not be  null. | 
| void | setUserAttribute(java.lang.String attributeName,
                java.lang.String attributeValue)Add a user attribute, will override current value. | 
getChallengeName, getClientMetaData, getParameters, setChallengeResponse, setClientMetaData, setResponseSessionCodepublic NewPasswordContinuation(CognitoUser user, android.content.Context context, java.lang.String username, java.lang.String clientId, java.lang.String secretHash, com.amazonaws.services.cognitoidentityprovider.model.RespondToAuthChallengeResult challengeResult, boolean runInBackground, AuthenticationHandler callback)
user - REQUIRED: Reference to the CognitoUser object.runInBackground - REQUIRED: Represents where this continuation has to run.callback - REQUIRED: Callback to interact with the app.context - REQUIRED: The android context.username - REQUIRED: the username.clientId - REQUIRED: the clientId.secretHash - REQUIRED: the secreth hash.challengeResult - REQUIRED: The response to respond to the authentication challenge.public java.util.List<java.lang.String> getRequiredAttributes()
List<String> of all required user attributes.public java.util.Map<java.lang.String,java.lang.String> getCurrentUserAttributes()
Map<String, String> containing all current values of user attributes.public void setUserAttribute(java.lang.String attributeName,
                             java.lang.String attributeValue)
attributeName - REQUIRED: The attribute name.attributeValue - REQUIRED: The attribute value.public void setPassword(java.lang.String userPassword)
null. This is required to complete the user sign-up.userPassword - REQUIRED: New user password.public void continueTask()
continueTask in interface CognitoIdentityProviderContinuation<java.util.Map<java.lang.String,java.lang.String>>continueTask in class ChallengeContinuationCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.