]> git.0d.be Git - empathy.git/blob - extensions/Channel_Type_Server_TLS_Connection.xml
977002f95f2d7333018182b7b76c08b0c6291d38
[empathy.git] / extensions / Channel_Type_Server_TLS_Connection.xml
1 <?xml version="1.0" ?>
2 <node name="/Channel_Type_Server_TLS_Connection"
3     xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
4   <tp:copyright> Copyright © 2010 Collabora Limited </tp:copyright>
5   <tp:license>
6     This library is free software; you can redistribute it and/or
7     modify it under the terms of the GNU Lesser General Public
8     License as published by the Free Software Foundation; either
9     version 2.1 of the License, or (at your option) any later version.
10
11     This library is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14     Lesser General Public License for more details.
15
16     You should have received a copy of the GNU Lesser General Public
17     License along with this library; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19   </tp:license>
20
21   <interface name="org.freedesktop.Telepathy.Channel.Type.ServerTLSConnection.DRAFT"
22              tp:causes-havoc="experimental">
23     <tp:added version="0.19.11">(draft 1)</tp:added>
24
25     <tp:requires interface="org.freedesktop.Telepathy.Channel"/>
26
27     <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
28       <p>A channel type that carries a TLS certificate between a server
29       and a client connecting to it.</p>
30       <p>Channels of this kind always have <tp:dbus-ref
31       namespace="org.freedesktop.Telepathy.Channel">Requested</tp:dbus-ref> = False,
32       <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel">TargetHandleType</tp:dbus-ref>
33       = None and <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel">TargetHandle</tp:dbus-ref>
34       = 0, and cannot be requested with methods such as <tp:dbus-ref
35       namespace="org.freedesktop.Telepathy.Connection.Interface.Requests">CreateChannel</tp:dbus-ref>.
36       Also, they SHOULD be dispatched while the
37       <tp:dbus-ref namespace="org.freedesktop.Telepathy">Connection</tp:dbus-ref>
38       owning them is in the CONNECTING state.</p>
39       <p>In this case, handlers SHOULD accept or reject the certificate, using
40       the relevant methods on the provided object, or MAY just <tp:dbus-ref
41       namespace="org.freedesktop.Telepathy.Channel">Close</tp:dbus-ref> the channel before doing so, to fall
42       back to a non-interactive verification process done inside the CM.</p>
43       <p>For example, channels of this kind can pop up while a client is
44       connecting to an XMPP server.</p>
45     </tp:docstring>
46
47     <property name="ServerCertificate" type="o" access="read"
48               tp:name-for-bindings="ServerCertificate">
49       <tp:docstring>
50         <p>A <tp:dbus-ref
51         namespace="org.freedesktop.Telepathy.Authentication">TLSCertificate.DRAFT</tp:dbus-ref>
52         containing the certificate chain as sent by the server,
53         and other relevant information.</p>
54         <p>This property is immutable.</p>
55       </tp:docstring>
56     </property>
57
58     <property name="Hostname" type="s" access="read"
59               tp:name-for-bindings="Hostname">
60       <tp:docstring>
61         The hostname of the server we expect <tp:member-ref>ServerCertificate</tp:member-ref>
62         to certify; clients SHOULD verify <tp:member-ref>ServerCertificate</tp:member-ref> against
63         this hostname when checking its validity.
64       </tp:docstring>
65     </property>
66
67   </interface>
68 </node>
69 <!-- vim:set sw=2 sts=2 et ft=xml: -->