diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-03-07 11:24:53 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-03-07 11:24:53 +0100 |
commit | 59067f9f8b0a12f875ba928b30f8f35fc284356c (patch) | |
tree | 92379fd46bf0bec795ff5960123e3651be2fef2b /OpenPGP-Keychain-API/libraries/keychain-api-library | |
parent | 53ba741810ee039acbd25a1e139333201d5b043d (diff) | |
download | open-keychain-59067f9f8b0a12f875ba928b30f8f35fc284356c.tar.gz open-keychain-59067f9f8b0a12f875ba928b30f8f35fc284356c.tar.bz2 open-keychain-59067f9f8b0a12f875ba928b30f8f35fc284356c.zip |
API: get key
Diffstat (limited to 'OpenPGP-Keychain-API/libraries/keychain-api-library')
-rw-r--r-- | OpenPGP-Keychain-API/libraries/keychain-api-library/src/org/openintents/openpgp/util/OpenPgpApi.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenPGP-Keychain-API/libraries/keychain-api-library/src/org/openintents/openpgp/util/OpenPgpApi.java b/OpenPGP-Keychain-API/libraries/keychain-api-library/src/org/openintents/openpgp/util/OpenPgpApi.java index 9cf2a5ee9..f768a1685 100644 --- a/OpenPGP-Keychain-API/libraries/keychain-api-library/src/org/openintents/openpgp/util/OpenPgpApi.java +++ b/OpenPGP-Keychain-API/libraries/keychain-api-library/src/org/openintents/openpgp/util/OpenPgpApi.java @@ -112,12 +112,16 @@ public class OpenPgpApi { public static final String ACTION_GET_KEY_IDS = "org.openintents.openpgp.action.GET_KEY_IDS"; /** - * Download keys from keyserver + * This action returns RESULT_CODE_SUCCESS if the OpenPGP Provider already has the key + * corresponding to the given key id in its database. + * + * It returns RESULT_CODE_USER_INTERACTION_REQUIRED if the Provider does not have the key. + * The PendingIntent from RESULT_INTENT can be used to retrieve those from a keyserver. * * required extras: - * long[] EXTRA_KEY_IDS + * long EXTRA_KEY_ID */ - public static final String ACTION_DOWNLOAD_KEYS = "org.openintents.openpgp.action.DOWNLOAD_KEYS"; + public static final String ACTION_GET_KEY = "org.openintents.openpgp.action.GET_KEY"; /* Intent extras */ public static final String EXTRA_API_VERSION = "api_version"; @@ -133,6 +137,9 @@ public class OpenPgpApi { // optional extras: public static final String EXTRA_PASSPHRASE = "passphrase"; + // GET_KEY + public static final String EXTRA_KEY_ID = "key_id"; + /* Service Intent returns */ public static final String RESULT_CODE = "result_code"; |