service: support sender address status and list of confirmed user ids to OpenPgpSignatureResult

This commit is contained in:
Vincent Breitmoser
2016-06-02 15:32:45 +02:00
parent 24b92172be
commit 88b0903bf5
7 changed files with 91 additions and 15 deletions

View File

@@ -478,6 +478,7 @@ public class OpenPgpService extends Service {
}
byte[] detachedSignature = data.getByteArrayExtra(OpenPgpApi.EXTRA_DETACHED_SIGNATURE);
String senderAddress = data.getStringExtra(OpenPgpApi.EXTRA_SENDER_ADDRESS);
PgpDecryptVerifyOperation op = new PgpDecryptVerifyOperation(this, mProviderHelper, progressable);
@@ -490,7 +491,8 @@ public class OpenPgpService extends Service {
.setAllowSymmetricDecryption(false)
.setAllowedKeyIds(allowedKeyIds)
.setDecryptMetadataOnly(decryptMetadataOnly)
.setDetachedSignature(detachedSignature);
.setDetachedSignature(detachedSignature)
.setSenderAddress(senderAddress);
DecryptVerifyResult pgpResult = op.execute(input, cryptoInput, inputData, outputStream);