Class AccountChangePasswordQuery

    • Constructor Detail

      • AccountChangePasswordQuery

        public AccountChangePasswordQuery​(VkApiClient client,
                                          UserActor actor,
                                          java.lang.String newPassword)
        Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
        Parameters:
        client - VK API client
        actor - actor with access token
        newPassword - value of "new password" parameter.
    • Method Detail

      • restoreSid

        public AccountChangePasswordQuery restoreSid​(java.lang.String value)
        Session id received after the [vk.com/dev/auth.restore|auth.restore] method is executed. (If the password is changed right after the access was restored)
        Parameters:
        value - value of "restore sid" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • changePasswordHash

        public AccountChangePasswordQuery changePasswordHash​(java.lang.String value)
        Hash received after a successful OAuth authorization with a code got by SMS. (If the password is changed right after the access was restored)
        Parameters:
        value - value of "change password hash" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • oldPassword

        public AccountChangePasswordQuery oldPassword​(java.lang.String value)
        Current user password.
        Parameters:
        value - value of "old password" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • newPassword

        protected AccountChangePasswordQuery newPassword​(java.lang.String value)
        New password that will be set as a current
        Parameters:
        value - value of "new password" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.