XEP-0087: Stream Initiation

Similar documents
XEP-0052: File Transfer

XEP-0099: IQ Query Action Protocol

XEP-0363: HTTP File Upload

XEP-0146: Remote Controlling Clients

XEP-0333: Chat Markers

XEP-0135: File Sharing

XEP-0044: Full Namespace Support for XML Streams

XEP-0399: Client Key Support

XEP-0042: Jabber OOB Broadcast Service (JOBS)

XEP-0140: Shared Groups

XEP-0104: HTTP Scheme for URL Data

XEP-0009: Jabber-RPC

XEP-0129: WebDAV File Transfers

XEP-0133: Service Administration

XEP-0361: Zero Handshake Server to Server Protocol

XEP-0293: Jingle RTP Feedback Negotiation

XEP-0056: Business Data Interchange

XEP-0395: Atomically Compare-And-Publish PubSub Items

XEP-0033: Extended Stanza Addressing

XEP-0344: Impact of TLS and DNSSEC on Dialback

XEP-0114: Jabber Component Protocol

XEP-0357: Push Notifications

XEP-0341: Rayo CPA. Ben Langfeld Version 0.2

XEP-0283: Moved. Tory Patnoe Version 0.1.1

XEP-0290: Encapsulated Digital Signatures in XMPP

XEP-0206: XMPP Over BOSH

XEP-0295: JSON Encodings for XMPP

XEP-0412: XMPP Compliance Suites 2019

XEP-0059: Result Set Management

XEP-0171: Language Translation

XEP-0289: Federated MUC for Constrained Environments

XEP-0043: Jabber Database Access

XEP-0337: Event Logging over XMPP

XEP-0280: Message Carbons

XEP-0011: Jabber Browsing

XEP-0130: Waiting Lists

XEP-0050: Ad-Hoc Commands

XEP-0266: Codecs for Jingle Audio

XEP-0060: Publish-Subscribe

XEP-0340: COnferences with LIghtweight BRIdging (COLIBRI)

XEP-0298: Delivering Conference Information to Jingle Participants (Coin)

XEP-0324: Internet of Things - Provisioning

XEP-0278: Jingle Relay Nodes

XEP-0284: Shared XML Editing

XEP-0065: SOCKS5 Bytestreams

XEP-0136: Message Archiving

X Generic Event Extension. Peter Hutterer

Open Source Used In Cisco Configuration Professional for Catalyst 1.0

Bar Code Discovery. Administrator's Guide

Ecma International Policy on Submission, Inclusion and Licensing of Software

Additional License Authorizations for HPE OneView for Microsoft Azure Log Analytics

Splunk. Splunk. Deployment Guide

Ecma International Policy on Submission, Inclusion and Licensing of Software

XEP-0148: Instant Messaging Intelligence Quotient (IM IQ)

Epic. Epic Systems. Deployment Guide

VMware vcenter Log Insight Manager. Deployment Guide

IETF TRUST. Legal Provisions Relating to IETF Documents. Approved November 6, Effective Date: November 10, 2008

Moodle. Moodle. Deployment Guide

Adobe Connect. Adobe Connect. Deployment Guide

NTLM NTLM. Feature Description

HTNG Web Services Product Specification. Version 2011A

Packet Trace Guide. Packet Trace Guide. Technical Note

CA File Master Plus. Release Notes. Version

IETF TRUST. Legal Provisions Relating to IETF Documents. February 12, Effective Date: February 15, 2009

QPP Proprietary Profile Guide

LoadMaster VMware Horizon (with View) 6. Deployment Guide

Migration Tool. Migration Tool (Beta) Technical Note

MERIDIANSOUNDINGBOARD.COM TERMS AND CONDITIONS

Bar Code Discovery. Administrator's Guide

KEMP Driver for Red Hat OpenStack. KEMP LBaaS Red Hat OpenStack Driver. Installation Guide

Panasonic Audio Player 2 User Guide

HTNG Web Services Product Specification. Version 2014A

Hyper-V - Windows 2012 and 8. Virtual LoadMaster for Microsoft Hyper-V on Windows Server 2012, 2012 R2 and Windows 8. Installation Guide

Technics Audio Player User Guide

Distributed Intelligent Capture. Integration Guide

XEP-0313: Message Archive Management

MQ Port Scan Installation and Operation Manual

AMS Device Manager. Planning and Installation Guide May Version 13.5 Planning and Installation Guide

XEP-0045: Multi-User Chat

RSA Two Factor Authentication

iwrite technical manual iwrite authors and contributors Revision: 0.00 (Draft/WIP)

Altus Shared Data Experience (SDX)

User Guide. Calibrated Software, Inc.

Installing Your Microsoft Access Database (Manual Installation Instructions)

Enterprise Payment Solutions. Scanner Installation April EPS Scanner Installation: Quick Start for Remote Deposit Complete TM

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

XEP-0322: Efficient XML Interchange (EXI) Format

Simba Cassandra ODBC Driver with SQL Connector

ServerStatus Installation and Operation Manual

git-pr Release dev2+ng5b0396a

Getting Started with MTConnect: Architecture

Trimble. ecognition. Release Notes

Terms Of Use AGREEMENT BETWEEN USER AND DRAKE MODIFICATION OF THESE TERMS OF USE LINKS TO THIRD PARTY WEB SITES USE OF COOKIES

XEP-0166: Jingle. Joe Beda

mp3fm Documentation Release Akshit Agarwal

Feed Cache for Umbraco Version 2.0

MS Lync MS Lync Deployment Guide

Edge Security Pack (ESP)

This file includes important notes on this product and also the additional information not included in the manuals.

PRODUCT SPECIFIC LICENSE TERMS Sybase Enterprise Portal Version 5 Application Edition ( Program )

Transcription:

XEP-0087: Stream Initiation Thomas Muldowney mailto:temas@jabber.org xmpp:temas@jabber.org 2003-05-22 Version 0.1 Status Type Short Name Retracted Standards Track si A common method to initiate a stream with meta information

Legal Copyright This XMPP Extension Protocol is copyright 1999 2018 by the XMPP Standards Foundation (XSF). Permissions Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the Specification ), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation. Warranty ## NOTE WELL: This Specification is provided on an AS IS BASIS, WITHOUT WARRANTIES OR CONDI- TIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ## Liability In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages. Conformance This XMPP Extension Protocol has been contributed in full conformance with the XSF s Intellectual Property Rights Policy (a copy of which can be found at <https://xmpp.org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).

Contents 1 Introduction 1 2 Requirements 1 2.1 Use Case....................................... 1 3 Basic Usage 1 4 Detailed Usage 3 4.1 Profiles........................................ 3 4.2 Stream Interaction.................................. 4 4.3 <si> Explanation................................... 4 4.4 Error Codes...................................... 5 5 Security Considerations 5 6 IANA Considerations 5 7 XMPP Registrar Considerations 6 8 Formal Definition 6 8.1 Schema........................................ 6 8.2 DTD.......................................... 6

3 BASIC USAGE 1 Introduction As more people begin to make use of streams in Jabber, there becomes a need for more descriptive negotiation of which stream to use. This document provides a method to negotiate a stream and provide some meta-information about the streams usage. 2 Requirements The defined protocol will allow for negotiation of a common stream. The defined protocol will allow for meta-information to be sent about the stream usage. The defined protocol will not be required for stream usage. 2.1 Use Case Sender wishes to interact with another user, using a method that requires streams. Primary Flow: 1. Sender discovers if Receiver implements the desired profile. [E1] 2. Sender offers a stream initiation. [E2] 3. Receiver accepts stream initiation. 4. Sender uses the negotiated stream and profile to send the information. Error Conditions: 1. The Receiver does not support the desired profile, EUC 2. Receiver rejects the stream initiation, EUC 3 Basic Usage Before a Stream Initiation is attempted the Sender should be sure that the Receiver supports both Stream Initiation and the specific profile that they wish to use. This is discovered by using Service Discovery (XEP-0030) 1 : 1 XEP-0030: Service Discovery <https://xmpp.org/extensions/xep-0030.html>. 1

3 BASIC USAGE <iq Listing 1: Requesting Disco Information From Receiver type = get to= receiver@jabber.org / resource from = sender@jabber.org / resource id= info1 > <query xmlns = http: // jabber.org / protocol / disco # info /> The Receiver will advertise the http://jabber.org/protocol/si namespace as a feature to represent they implement this document. The specific profiles can be found by looking for http://jabber.org/protocol/si/profile/profile-name. Shown in the result is a potential file transfer profile: <iq Listing 2: Receiver Disco Information Result type = result to= sender@jabber.org / resource from = receiver@jabber.org / resource id= info1 > <query xmlns = http: // jabber.org / protocol / disco # info > <feature var = http: // jabber.org / protocol /si /> <feature var = htpt: // jabber.org / protocol /si/ profile / filexfer / > </ query > Now that the Sender is sure that the Receiver support Stream Initiation they send the offer: Listing 3: Offer Stream Initiation <iq type = set id= offer1 to= receiver@jabber.org / resource > <si xmlns = http: // jabber.org / protocol /si id= a0 mime - type = application /octet - stream profile = http: // jabber.org / protocol /si/ profile / profile - name > <header name = key >value </ header > <feature xmlns = http: // jabber.org / protocol / feature -neg > <x xmlns = jabber:x:data > <field var = file - transfer - method type = list - single > <option ><value >s5b </ value ></ option > <option ><value > jabber:iq:oob </ value ></ option > <option ><value >ibb </ value ></ option > </ field > </x> </ feature > 2

4 DETAILED USAGE </si > At this point the Receiver can view the headers and other information to decide if they wish to accept the Stream Initiation. If they accept they MUST select one of the presented stream types to use. If none of the stream types are acceptable the Receiver MUST reply with an error: Listing 4: Accept Stream Initiation <iq type = result to= sender@jabber.org / resource id= offer1 > <si xmlns = http: // jabber.org /si id= a0 > <feature xmlns = http: // jabber.org / protocol / feature -neg > <x xmlns = jabber:x:data type = submit > <field var = file - transfer - method > <value >s5b </ value > </ field > </x> </ feature > </si > Listing 5: Rejecting Stream Initiation <iq type = error to= sender@jabber.org / resource id= offer1 > <error code = 403 >Offer Declined </ error > Listing 6: No Valid Streams <iq type = error to= sender@jabber.org / resource id= offer1 > <error code = 406 >No Valid Streams </ error > If the Receiver has accepted the Stream Initiation the Sender may then used the semantics defined by the selected stream and start the usage. 4 Detailed Usage 4.1 Profiles While Stream Initiation itself is helpful, it makes much more sense when what is being transported over the stream is known. Knowing this allows the Receiver to make a more educated choice about whether or not to accept the stream. This information is transported in Stream Initiation through a profile. A profile is a series of required and optional headers that describe the stream data or how the stream is to be used. Each Stream Initiation MUST 3

4 DETAILED USAGE have only one profile, so the stream usage is kept clear. Creating a profile is fairly simple. First, a name is chosen, the complete name is formatted like: http: // jabber. org / protocol /si/ profile / profile - name The complete name is what is presented in information discovery requests in order to show that the profile is supported. It is also used for the <si> profile attribute. Next, the information for the headers is decided upon. Each piece of information will be transported in a <header> tag. The name attribute is a descriptive key that can be looked up at the XMPP Registrar or XEP describing the profile. The actual data in the <header> is the fact related to the name attribute. It must also be stated whether the header is required or optional. This document does not define any profiles, nor does it place any restrictions on what type of information a profile should detail. This document also does not place restrictions on what may be placed in a <header>. Other XEPs will define profiles to be used with Stream Initiation. 4.2 Stream Interaction While Stream Initiation is not directly required for stream usage, it does provide many benefits. In order to fully appreciate these benefits, streams must link the Stream Initiation to the stream. The id attribute of the <si> node is intended to provide this link. It is out of scope of this document to define how streams will make use of this facility, but it does suggest some methods: Transport the Stream Initiation id with the stream negotitation as a namespaced attribute, such as: <stream id= 0 xmlns:si = http: // jabber.org / protocol /si si:id = si0 > <start /> </ stream > Transport the Stream Initiation id in a namespaced tag, such as: <stream id= 0 > <start /> <si xmlns = http: // jabber.org / protocol /si id= si0 / > </ stream > 4.3 <si> Explanation The attributes and data of <si> are fairly simple: 4

6 IANA CONSIDERATIONS id - An opaque identifier generated by the Sender. mime-type - The mime-type of the data being negotiated, selected by Sender. profile - The profile s fulle name, selected by Sender. The data of the node is a mixture of a feature negotiation for the stream and the profiles headers. When the Sender is offering a Stream Initiation all of the attributes must be present. The data MUST contain the required profile headers and the feature negotiation for the stream MUST be present with at least one option. The optional profile headers MAY also be in the node data. When the Receiver accepts a Stream Initiation the id attribute MUST be present, all other attributes MUST NOT be present. The selected stream MUST be in the feature negotiation for the stream. There MUST only be one selected stream. 4.4 Error Codes There are two error codes that are used. Following are the conditions, meanings and data: Declining Transfer (403): During the Stream Initiation the Receiver may decline the transfer by sending the 403 error. The <error/> CDATA MAY contain a descriptive reason why, but is not necessary. No Available Methods (406): When the Sender presents the available stream methods, and the Receiver can not use any of them, they send a 406 error. The <error/> CDATA is not important. 5 Security Considerations Data security concerns are left to the profiles to define. Wire security concerns are left to the stream definitions. 6 IANA Considerations This document uses the MIME types as recorded by IANA, but no other direct interaction is necessary. 5

8 FORMAL DEFINITION 7 XMPP Registrar Considerations The http://jabber.org/protocol/si namespace will be registered. The registrar will track header profiles for different stream initiation uses. 8 Formal Definition 8.1 Schema To follow. 8.2 DTD To follow. 6