summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2014-05-21 01:22:45 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2014-05-21 01:26:15 +0200
commit2b7240569750ab5a2282c80d4a34ea001ffc17dc (patch)
tree8118d646154fea8b7fa85b196fd299875b18644e
parent6ea1c022e943eaa6c8977a898bcbe90a7d8de392 (diff)
downloadneard-2b7240569750ab5a2282c80d4a34ea001ffc17dc.tar.gz
neard-2b7240569750ab5a2282c80d4a34ea001ffc17dc.tar.bz2
neard-2b7240569750ab5a2282c80d4a34ea001ffc17dc.zip
doc: Add seeld D-Bus API
They need to be converted to freedesktop's Object Manager API. Once that's done, se-manager-api.txt will go away.
-rw-r--r--Makefile.am3
-rw-r--r--doc/se-manager-api.txt26
-rw-r--r--doc/secureelement-api.txt101
3 files changed, 129 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 40bb36a..26f49e7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -133,7 +133,8 @@ build_plugindir = $(plugindir)
endif
doc_files = doc/tag-api.txt doc/device-api.txt doc/adapter-api.txt \
- doc/agent-api.txt doc/phdc-api.txt
+ doc/agent-api.txt doc/phdc-api.txt \
+ doc/secureelement-api.txt doc/se-manager-api.txt
EXTRA_DIST = src/genbuiltin $(doc_files)
diff --git a/doc/se-manager-api.txt b/doc/se-manager-api.txt
new file mode 100644
index 0000000..095f571
--- /dev/null
+++ b/doc/se-manager-api.txt
@@ -0,0 +1,26 @@
+Manager hierarchy
+=================
+
+Service org.neard.se
+Interface org.neard.se.Manager
+Object path /
+
+Methods dict GetProperties()
+
+ Returns all properties for the manager. See the
+ properties section for available properties.
+
+ Possible Errors: org.seeld.Error.DoesNotExist
+
+Signals SecureElementAdded(object se)
+
+ Parameter is the object path of the added secure element.
+
+ SecureElementRemoved(object se)
+
+ Parameter is the object path of .
+
+
+Properties array{object} SecureElements [readonly]
+
+ List of secure element object paths.
diff --git a/doc/secureelement-api.txt b/doc/secureelement-api.txt
new file mode 100644
index 0000000..4b117cd
--- /dev/null
+++ b/doc/secureelement-api.txt
@@ -0,0 +1,101 @@
+Secure Element hierarchy
+========================
+
+Service org.neard.se
+Interface org.neard.se.SecureElement
+Object path [variable prefix]/{se0,se1,...}
+
+
+Methods: dict GetProperties()
+
+ Returns all properties for the secure element. See the
+ properties section for available properties.
+
+ Possible Errors: org.seeld.Error.DoesNotExist
+
+ void SetProperty(string name, variant value)
+
+ Changes the value of the specified property. Only
+ properties that are listed a read-write are changeable.
+ On success this will emit a PropertyChanged signal.
+
+ Possible Errors: org.seeld.Error.DoesNotExist
+ org.seeld.Error.InvalidArguments
+
+ object OpenChannel(array{byte} AID)
+
+ Open an ISO7816 logical channel to the secure element.
+ The AID (Application ID) array must be between 5 and 16
+ bytes long.
+ The returned path is a Channel object path.
+
+ Possible errors: org.seeld.Error.Failed
+ org.seeld.Error.InvalidArguments
+ org.seeld.Error.PermissionDenied
+ org.seeld.Error.NotSupported
+
+ void CloseChannel(object channel)
+
+ Close an ISO7816 channel, passed as an object path
+ argument.
+
+ Possible errors: org.seeld.Error.Failed
+ org.seeld.Error.InvalidArguments
+ org.seeld.Error.PermissionDenied
+ org.seeld.Error.NotSupported
+
+Signals PropertyChanged(string name, variant value)
+
+ This signal indicates a changed value of the given
+ property.
+
+
+Properties string Type [readonly]
+
+ The secure element type.
+
+ Possible values are "Embedded", "UICC" or "ASSD".
+
+ boolean Enabled [readwrite]
+
+ Enable a secure element.
+ This will e.g. enable the SWP link for a UICC
+ based secure element.
+
+ array{object} Channels [readonly]
+
+ The opened channels object paths for this secure element.
+
+
+Channel hierarchy
+=================
+
+Service org.neard.se
+Interface org.neard.se.Channel
+Object path [variable prefix]/{se0}/{channel0,channel1,...}
+
+Methods: dict GetProperties()
+
+ Returns all properties for the secure element. See the
+ properties section for available properties.
+
+ Possible Errors: org.seeld.Error.DoesNotExist
+
+ array{byte} SendAPDU(array{byte})
+
+ Send an ISO7816 APDU over this channel.
+ This is an asynchronous method and the returned array
+ is the response to the ISO7816 command.
+
+ Possible errors: org.seeld.Error.Failed
+ org.seeld.Error.PermissionDenied
+ org.seeld.Error.NotSupported
+
+
+Properties boolean Basic [readonly]
+
+ Indicates if the channel is a basic one or not.
+
+ array{byte} AID
+
+ Associated Application ID.