diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-10-02 19:08:33 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-10-02 19:08:33 +0200 |
commit | 2a0df5b75abc35978abbe669177662b4d66fbf18 (patch) | |
tree | d69198bf734255cb2d5229674554ee9d2b0e96bd /OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpService.aidl | |
parent | 224faa42ac855776a8494decfcac9d23dbfcec09 (diff) | |
download | open-keychain-2a0df5b75abc35978abbe669177662b4d66fbf18.tar.gz open-keychain-2a0df5b75abc35978abbe669177662b4d66fbf18.tar.bz2 open-keychain-2a0df5b75abc35978abbe669177662b4d66fbf18.zip |
API update
Diffstat (limited to 'OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpService.aidl')
-rw-r--r-- | OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpService.aidl | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpService.aidl b/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpService.aidl index ca291469c..ab7ec8b1a 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpService.aidl +++ b/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpService.aidl @@ -23,61 +23,67 @@ import org.openintents.openpgp.IOpenPgpCallback; * Results are returned to the callback, which has to be implemented on client side. */ interface IOpenPgpService { - + /** * Encrypt * + * After successful encryption, callback's onSuccess will contain the resulting output bytes. + * * @param inputBytes * Byte array you want to encrypt * @param encryptionUserIds * User Ids (emails) of recipients * @param asciiArmor - * Encode for ASCII (Radix-64, 33 percent overhead compared to binary) + * Encode result for ASCII (Radix-64, 33 percent overhead compared to binary) * @param allowUserInteraction * Allows the OpenPGP Provider to handle missing keys by showing activities * @param callback * Callback where to return results */ - oneway void encrypt(in byte[] inputBytes, in String[] encryptionUserIds, - in boolean asciiArmor, in boolean allowUserInteraction, in IOpenPgpCallback callback); + oneway void encrypt(in byte[] inputBytes, in String[] encryptionUserIds, in boolean asciiArmor, + in IOpenPgpCallback callback); /** * Sign + * + * After successful signing, callback's onSuccess will contain the resulting output bytes. * * @param inputBytes - * Byte array you want to encrypt + * Byte array you want to sign * @param asciiArmor - * Encode for ASCII (Radix-64, 33 percent overhead compared to binary) + * Encode result for ASCII (Radix-64, 33 percent overhead compared to binary) * @param allowUserInteraction * Allows the OpenPGP Provider to handle missing keys by showing activities * @param callback * Callback where to return results */ - oneway void sign(in byte[] inputBytes, in boolean asciiArmor, in boolean allowUserInteraction, - in IOpenPgpCallback callback); + oneway void sign(in byte[] inputBytes, in boolean asciiArmor, in IOpenPgpCallback callback); /** * Sign then encrypt + * + * After successful signing and encryption, callback's onSuccess will contain the resulting output bytes. * * @param inputBytes - * Byte array you want to encrypt + * Byte array you want to sign and encrypt * @param encryptionUserIds * User Ids (emails) of recipients - * @param signatureUserId - * User Ids (email) of sender * @param asciiArmor - * Encode for ASCII (Radix-64, 33 percent overhead compared to binary) + * Encode result for ASCII (Radix-64, 33 percent overhead compared to binary) * @param allowUserInteraction * Allows the OpenPGP Provider to handle missing keys by showing activities * @param callback * Callback where to return results */ - oneway void signAndEncrypt(in byte[] inputBytes, in String[] encryptionUserIds, - in boolean asciiArmor, in boolean allowUserInteraction, in IOpenPgpCallback callback); + oneway void signAndEncrypt(in byte[] inputBytes, in String[] encryptionUserIds, in boolean asciiArmor, + in IOpenPgpCallback callback); /** - * Decrypts and verifies given input bytes. If no signature is present this method - * will only decrypt. + * Decrypts and verifies given input bytes. This methods handles encrypted-only, signed-and-encrypted, + * and also signed-only inputBytes. + * + * After successful decryption/verification, callback's onSuccess will contain the resulting output bytes. + * The signatureResult in onSuccess is only non-null if signed-and-encrypted or signed-only inputBytes were given. * * @param inputBytes * Byte array you want to decrypt and verify @@ -86,7 +92,8 @@ interface IOpenPgpService { * @param callback * Callback where to return results */ - oneway void decryptAndVerify(in byte[] inputBytes, in boolean allowUserInteraction, - in IOpenPgpCallback callback); + oneway void decryptAndVerify(in byte[] inputBytes, in IOpenPgpCallback callback); + + boolean isKeyAvailable(in String[] userIds); }
\ No newline at end of file |