aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2016-03-01 00:21:28 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2016-05-07 12:06:20 +0300
commit0c224191a159162ffde232770848ff5805d4d522 (patch)
treeba5dbb4daa9f4107051b50429734d2bb883c80bd
parent39fa41f8815f2ead9a71140af0b4e5e7d4924977 (diff)
downloadopenpgp-api-0c224191a159162ffde232770848ff5805d4d522.tar.gz
openpgp-api-0c224191a159162ffde232770848ff5805d4d522.tar.bz2
openpgp-api-0c224191a159162ffde232770848ff5805d4d522.zip
Add EXTRA_REQUEST_ASCII_ARMOR to ACTION_BACKUP
-rw-r--r--example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java1
-rw-r--r--openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java7
2 files changed, 6 insertions, 2 deletions
diff --git a/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java b/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
index 992f8be..00a8f7d 100644
--- a/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
+++ b/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
@@ -413,6 +413,7 @@ public class OpenPgpApiActivity extends Activity {
data.setAction(OpenPgpApi.ACTION_BACKUP);
data.putExtra(OpenPgpApi.EXTRA_KEY_IDS, new long[]{Long.decode(mGetKeyEdit.getText().toString())});
data.putExtra(OpenPgpApi.EXTRA_BACKUP_SECRET, true);
+ data.putExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);
ByteArrayOutputStream os = new ByteArrayOutputStream();
diff --git a/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java b/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java
index 5417f6b..da594b6 100644
--- a/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java
+++ b/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java
@@ -211,8 +211,11 @@ public class OpenPgpApi {
* This operation always requires user interaction with RESULT_CODE_USER_INTERACTION_REQUIRED!
* <p/>
* required extras:
- * long[] EXTRA_KEY_IDS (keys that should be included in the backup)
- * boolean EXTRA_BACKUP_SECRET (also backup secret keys)
+ * long[] EXTRA_KEY_IDS (keys that should be included in the backup)
+ * boolean EXTRA_BACKUP_SECRET (also backup secret keys)
+ * <p/>
+ * optional extras:
+ * String EXTRA_REQUEST_ASCII_ARMOR (request that the returned backup is encoded in ASCII Armor)
*/
public static final String ACTION_BACKUP = "org.openintents.openpgp.action.BACKUP";