[PATCH] Add a content type to the secret struct.
Stef Walter
stefw at collabora.co.uk
Wed Feb 9 10:53:53 PST 2011
This is used to specify the type of the secret. For example:
* text/plain; charset=utf8
* application/octet-stream
* etc...
---
secret-service/org.freedesktop.Secrets.xml | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/secret-service/org.freedesktop.Secrets.xml b/secret-service/org.freedesktop.Secrets.xml
index def4f62..6a9e495 100644
--- a/secret-service/org.freedesktop.Secrets.xml
+++ b/secret-service/org.freedesktop.Secrets.xml
@@ -38,7 +38,7 @@
<!--
* ======================================================================================
* SECRET STRUCT
- * Signature: (oayay)
+ * Signature: (oayays)
*
-->
@@ -53,6 +53,9 @@
<tp:member type="ay" name="value">
<tp:docstring>Possibly encoded secret value</tp:docstring>
</tp:member>
+ <tp:member type="s" name="content_type">
+ <tp:docstring>The content type of the secret. For example: 'text/plain; charset=utf8'</tp:docstring>
+ </tp:member>
</tp:struct>
<tp:mapping name="ObjectPath_Secret_Map">
@@ -60,7 +63,7 @@
<tp:member type="o" name="Key">
<tp:docstring>D-Bus object-path</tp:docstring>
</tp:member>
- <tp:member type="(oayay)" name="Value" tp:type="Secret">
+ <tp:member type="(oayays)" name="Value" tp:type="Secret">
<tp:docstring>A secret</tp:docstring>
</tp:member>
</tp:mapping>
@@ -173,7 +176,7 @@ properties = { "Label": "MyCollection" }
<arg name="session" type="o" direction="in">
<tp:docstring>The session to use to encode the secrets.</tp:docstring>
</arg>
- <arg name="secrets" type="a{o(oayay)}" direction="out" tp:type="ObjectPath_Secret_Map">
+ <arg name="secrets" type="a{o(oayays)}" direction="out" tp:type="ObjectPath_Secret_Map">
<tp:docstring>Secrets for the items.</tp:docstring>
</arg>
</method>
@@ -310,7 +313,7 @@ properties = {
</para>
</tp:docstring>
</arg>
- <arg name="secret" type="(oayay)" tp:type="Secret" direction="in">
+ <arg name="secret" type="(oayays)" tp:type="Secret" direction="in">
<tp:docstring>The secret to store in the item, encoded with the included session.</tp:docstring>
</arg>
<arg name="replace" type="b" direction="in">
@@ -395,14 +398,14 @@ properties = {
<arg name="session" type="o" direction="in">
<tp:docstring>The session to use to encode the secret.</tp:docstring>
</arg>
- <arg name="secret" type="(oayay)" tp:type="Secret" direction="out">
+ <arg name="secret" type="(oayays)" tp:type="Secret" direction="out">
<tp:docstring>The secret retrieved.</tp:docstring>
</arg>
</method>
<method name="SetSecret">
<tp:docstring>Set the secret for this item.</tp:docstring>
- <arg name="secret" type="(oayay)" tp:type="Secret" direction="in">
+ <arg name="secret" type="(oayays)" tp:type="Secret" direction="in">
<tp:docstring>The secret to set, encoded for the included session.</tp:docstring>
</arg>
</method>
--
1.7.1
--------------000608020402070207090602--
More information about the Authentication
mailing list