| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright (C) 2019 Red Hat, Inc. |
| 4 |
|
| 5 |
SPDX-License-Identifier: LGPL-2.1-or-later |
| 6 |
|
| 7 |
This library is free software; you can redistribute it and/or |
| 8 |
modify it under the terms of the GNU Lesser General Public |
| 9 |
License as published by the Free Software Foundation; either |
| 10 |
version 2.1 of the License, or (at your option) any later version. |
| 11 |
|
| 12 |
This library is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
Lesser General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU Lesser General Public |
| 18 |
License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
|
| 20 |
Author: Daiki Ueno <[email protected]> |
| 21 |
--> |
| 22 |
|
| 23 |
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> |
| 24 |
<!-- |
| 25 |
org.freedesktop.portal.Secret: |
| 26 |
@short_description: Portal for retrieving application secret |
| 27 |
|
| 28 |
The Secret portal allows sandboxed applications to retrieve a |
| 29 |
per-application secret. The secret can then be used for |
| 30 |
encrypting confidential data inside the sandbox. |
| 31 |
|
| 32 |
This documentation describes version 1 of this interface. |
| 33 |
--> |
| 34 |
<interface name="org.freedesktop.portal.Secret"> |
| 35 |
|
| 36 |
<!-- |
| 37 |
RetrieveSecret: |
| 38 |
@fd: Writable file descriptor for transporting the secret |
| 39 |
@options: Vardict with optional further information |
| 40 |
@handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call |
| 41 |
|
| 42 |
Retrieves a master secret for a sandboxed application. |
| 43 |
|
| 44 |
The master secret is unique per application and does not |
| 45 |
change as long as the application is installed (once it has |
| 46 |
been created). In a typical backend implementation, it is |
| 47 |
stored in the user's keyring, under the application ID as a |
| 48 |
key. |
| 49 |
|
| 50 |
While the master secret can be used for encrypting any |
| 51 |
confidential data in the sandbox, the format is opaque to the |
| 52 |
application. In particular, the length of the secret might not |
| 53 |
be sufficient for the use with certain encryption |
| 54 |
algorithm. In that case, the application is supposed to expand |
| 55 |
it using a KDF algorithm. |
| 56 |
|
| 57 |
The portal may return an additional identifier associated with |
| 58 |
the secret in the results vardict of |
| 59 |
:ref:`org.freedesktop.portal.Request::Response` signal. In the next |
| 60 |
call of this method, the application shall indicate it through |
| 61 |
a token element in @options. |
| 62 |
|
| 63 |
Supported keys in the @options vardict include: |
| 64 |
|
| 65 |
* ``handle_token`` (``s``) |
| 66 |
|
| 67 |
A string that will be used as the last element of the @handle. Must be a valid |
| 68 |
object path element. See the :ref:`org.freedesktop.portal.Request` documentation for |
| 69 |
more information about the @handle. |
| 70 |
|
| 71 |
* ``token`` (``s``) |
| 72 |
|
| 73 |
An opaque string returned by a previous org.freedesktop.portal.Secret.RetrieveSecret() call. |
| 74 |
--> |
| 75 |
<method name="RetrieveSecret"> |
| 76 |
<annotation name="org.gtk.GDBus.C.Name" value="retrieve_secret"/> |
| 77 |
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/> |
| 78 |
<arg type="h" name="fd" direction="in"/> |
| 79 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 80 |
<arg type="a{sv}" name="options" direction="in"/> |
| 81 |
<arg type="o" name="handle" direction="out"/> |
| 82 |
</method> |
| 83 |
<property name="version" type="u" access="read"/> |
| 84 |
</interface> |
| 85 |
</node> |