aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/IApgService.aidl
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@gmail.com>2011-01-23 21:36:35 +0000
committerMarkus Doits <markus.doits@gmail.com>2011-01-23 21:36:35 +0000
commit1ec5fc05412c6d7019dd40497a81397752bee602 (patch)
tree4ee3f2b8a058e69e1247147f5c997dde8ccc9f7f /src/org/thialfihar/android/apg/IApgService.aidl
parent6b7db8161a158e12344145815534f6552797cf6d (diff)
downloadopen-keychain-1ec5fc05412c6d7019dd40497a81397752bee602.tar.gz
open-keychain-1ec5fc05412c6d7019dd40497a81397752bee602.tar.bz2
open-keychain-1ec5fc05412c6d7019dd40497a81397752bee602.zip
Allow to retrieve fingerprints and user ids through AIDL
Update ApgCon and doc accordingly. Not very tested.
Diffstat (limited to 'src/org/thialfihar/android/apg/IApgService.aidl')
-rw-r--r--src/org/thialfihar/android/apg/IApgService.aidl33
1 files changed, 30 insertions, 3 deletions
diff --git a/src/org/thialfihar/android/apg/IApgService.aidl b/src/org/thialfihar/android/apg/IApgService.aidl
index c35e82df7..0eb1307b8 100644
--- a/src/org/thialfihar/android/apg/IApgService.aidl
+++ b/src/org/thialfihar/android/apg/IApgService.aidl
@@ -1,7 +1,7 @@
package org.thialfihar.android.apg;
interface IApgService {
-
+
/* All functions fill the return_vals Bundle with the following keys:
*
* ArrayList<String> "WARNINGS" = Warnings, if any
@@ -14,7 +14,12 @@ interface IApgService {
* 104: Private key's passphrase missing
*/
- /* Encryption function's arguments
+ /* *******************************************************
+ * Encrypting and decrypting
+ * ********************************************************/
+
+
+ /* All encryption function's arguments
*
* Bundle params' keys:
* (optional/required)
@@ -82,5 +87,27 @@ interface IApgService {
* Bundle return_vals:
* String "RESULT" = Decrypted message
*/
- boolean decrypt(in Bundle params, out Bundle return_vals);
+
+ boolean decrypt(in Bundle params, out Bundle return_vals);
+
+
+ /* *******************************************************
+ * Get key information
+ * ********************************************************/
+
+ /* Get info about all available keys
+ *
+ * Bundle params:
+ * (required)
+ * int "KEY_TYPE" = info about what type of keys to return
+ * 0: public keys
+ * 1: private keys
+ *
+ * Returns:
+ * StringArrayList "FINGERPRINTS" = Short fingerprints of keys
+ *
+ * StringArrayList "USER_IDS" = User ids of corrosponding fingerprints (order is the same)
+ */
+ boolean get_keys(in Bundle params, out Bundle return_vals);
+
} \ No newline at end of file