From 4f5fcbf94063301929d50370ab44895c6b4e1bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Tue, 27 Jan 2015 12:45:18 +0100 Subject: API version 6 --- src/org/openintents/openpgp/util/OpenPgpApi.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/org/openintents/openpgp/util/OpenPgpApi.java b/src/org/openintents/openpgp/util/OpenPgpApi.java index ddd5abc..39d8adf 100644 --- a/src/org/openintents/openpgp/util/OpenPgpApi.java +++ b/src/org/openintents/openpgp/util/OpenPgpApi.java @@ -41,7 +41,7 @@ public class OpenPgpApi { * --------------- *

* 3: - * - first public stable version + * - First public stable version *

* 4: * - No changes to existing methods -> backward compatible @@ -50,8 +50,14 @@ public class OpenPgpApi { * 5: * - OpenPgpSignatureResult: new consts SIGNATURE_KEY_REVOKED and SIGNATURE_KEY_EXPIRED * - OpenPgpSignatureResult: ArrayList userIds + * 6: + * - Deprecate ACTION_SIGN + * - Introduce ACTION_CLEARTEXT_SIGN and ACTION_DETACHED_SIGN + * - New extra for ACTION_DETACHED_SIGN: EXTRA_DETACHED_SIGNATURE + * - New result for ACTION_DECRYPT_VERIFY: RESULT_DETACHED_SIGNATURE + * - New result for ACTION_DECRYPT_VERIFY: RESULT_CHARSET */ - public static final int API_VERSION = 5; + public static final int API_VERSION = 6; /** * General extras @@ -90,7 +96,7 @@ public class OpenPgpApi { /** * Sign text or binary data resulting in a detached signature. - * No OutputStream for ACTION_DETACHED_SIGN (No magic pre-processing like in ACTION_CLEARTEXT_SIGN)! + * No OutputStream necessary for ACTION_DETACHED_SIGN (No magic pre-processing like in ACTION_CLEARTEXT_SIGN)! * The detached signature is returned separately in RESULT_DETACHED_SIGNATURE. *

* optional extras: @@ -135,6 +141,7 @@ public class OpenPgpApi { /** * Decrypts and verifies given input stream. This methods handles encrypted-only, signed-and-encrypted, * and also signed-only input. + * OutputStream is optional, e.g., for verifying detached signatures! *

* If OpenPgpSignatureResult.getStatus() == OpenPgpSignatureResult.SIGNATURE_KEY_MISSING * in addition a PendingIntent is returned via RESULT_INTENT to download missing keys. @@ -146,6 +153,7 @@ public class OpenPgpApi { * returned extras: * OpenPgpSignatureResult RESULT_SIGNATURE * OpenPgpDecryptMetadata RESULT_METADATA + * String RESULT_CHARSET (charset which was specified in the headers of ascii armored input, if any) */ public static final String ACTION_DECRYPT_VERIFY = "org.openintents.openpgp.action.DECRYPT_VERIFY"; @@ -156,6 +164,7 @@ public class OpenPgpApi { *

* returned extras: * OpenPgpDecryptMetadata RESULT_METADATA + * String RESULT_CHARSET (charset which was specified in the headers of ascii armored input, if any) */ public static final String ACTION_DECRYPT_METADATA = "org.openintents.openpgp.action.DECRYPT_METADATA"; -- cgit v1.2.3