Class ChangePasswordRequest

    • Method Detail

      • previousPassword

        public final String previousPassword()

        The user's previous password. Required if the user has a password. If the user has no password and only signs in with passwordless authentication options, you can omit this parameter.

        Returns:
        The user's previous password. Required if the user has a password. If the user has no password and only signs in with passwordless authentication options, you can omit this parameter.
      • proposedPassword

        public final String proposedPassword()

        A new password that you prompted the user to enter in your application.

        Returns:
        A new password that you prompted the user to enter in your application.
      • accessToken

        public final String accessToken()

        A valid access token that Amazon Cognito issued to the user whose password you want to change.

        Returns:
        A valid access token that Amazon Cognito issued to the user whose password you want to change.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object