diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-01-27 12:45:18 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-01-27 12:45:18 +0100 |
commit | 4f5fcbf94063301929d50370ab44895c6b4e1bd3 (patch) | |
tree | 5160cfb6436c96b69d24b9e95ad684617b6dff29 /src/org/openintents/openpgp/util | |
parent | edcc61970f24bb3601af26d89f49d384e7a3aff6 (diff) | |
download | openpgp-api-4f5fcbf94063301929d50370ab44895c6b4e1bd3.tar.gz openpgp-api-4f5fcbf94063301929d50370ab44895c6b4e1bd3.tar.bz2 openpgp-api-4f5fcbf94063301929d50370ab44895c6b4e1bd3.zip |
API version 6
Diffstat (limited to 'src/org/openintents/openpgp/util')
-rw-r--r-- | src/org/openintents/openpgp/util/OpenPgpApi.java | 15 |
1 files 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 { * --------------- * <p/> * 3: - * - first public stable version + * - First public stable version * <p/> * 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<String> 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. * <p/> * 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! * <p/> * 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 { * <p/> * 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"; |