summaryrefslogtreecommitdiff
path: root/src/private/org.gnome.evolution.dataserver.Authenticator.xml
blob: 22d9a347491490786af4aff439220e15655bc238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE node PUBLIC
"-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">

<!--
    org.gnome.evolution.dataserver.Authenticator:
    @short_description: Authentication interface

    Interface for an authentication session.
-->
<interface name="org.gnome.evolution.dataserver.Authenticator">
  <!-- WithoutPassword: Whether to try to authenticate without a password first. -->
  <property name="WithoutPassword" type="b" access="readwrite"/>

  <!--
      Ready:
      @encryption_key: Implementation defined encryption key

      Indicates the client is ready to receive Response signals.
      If this method is not called within a short duration after
      the object path for this interface is exported, the object
      path will be unexported.
  -->
  <method name="Ready">
    <arg name="encryption_key" direction="in" type="s"/>
  </method>

  <!--
      Cancel:

      Indicates the client no longer wishes to authenticate.
      Any active or pending authentication prompt will be cancelled,
      and the object path for this interface will be unexported.

      The object path for this interface will be unexported.

      This method ends the authentication session.
  -->
  <method name="Cancel"/>

  <!--
      Accepted:

      Indicates the most-recently-passed secret was accepted.  If the
      user wishes, the secret can be copied to a keyring for permanent
      storage at this point.

      The object path for this interface will be unexported.

      This method ends the authentication session.
  -->
  <method name="Accepted"/>

  <!--
      Rejected:

      Indicates the most-recently-passed secret was rejected.  The
      client should continue listening for a new Authenticate signal.
  -->
  <method name="Rejected"/>

  <!--
      Authenticate:
      @encrypted_secret: Encrypted secret string

      Emitted when the user has responded to an authentication prompt.

      The client should attempt to authenticate using the provided
      secret and then respond by calling either Accepted, Rejected
      or Cancel.  The Authenticate signal will not be emitted again
      until the client has responded.

      If at any time the user cancels the authentication prompt, the
      Dismissed signal is emitted immediately.
  -->
  <signal name="Authenticate">
    <arg name="encrypted_secret" type="s"/>
  </signal>

  <!--
      Dismissed:

      Emitted when the user has declined to provide a secret.

      Any further attempts to authenticate the Source will emit a
      Dismissed signal without interrupting the user.  This state
      persists until the ResetAuthDismissal method is called.

      This signal ends the authentication session.
  -->
  <signal name="Dismissed"/>

  <!--
      ServerError:
      @name: a #GError name encoded with g_dbus_error_encode_gerror().
      @message: a #GError::message

      Emitted when there was a server-side error. A g_dbus_error_new_for_dbus_error()
      can be used to reconstruct original #GError from @name and @message.

      This signal ends the authentication session.
  -->
  <signal name="ServerError">
    <arg name="name" type="s"/>
    <arg name="message" type="s"/>
  </signal>

</interface>