Search in sources :

Example 1 with OpenPgpDecryptionResult

use of org.openintents.openpgp.OpenPgpDecryptionResult in project k-9 by k9mail.

the class MessageCryptoHelper method handleCryptoOperationSuccess.

private void handleCryptoOperationSuccess(MimeBodyPart outputPart) {
    OpenPgpDecryptionResult decryptionResult = currentCryptoResult.getParcelableExtra(OpenPgpApi.RESULT_DECRYPTION);
    OpenPgpSignatureResult signatureResult = currentCryptoResult.getParcelableExtra(OpenPgpApi.RESULT_SIGNATURE);
    PendingIntent pendingIntent = currentCryptoResult.getParcelableExtra(OpenPgpApi.RESULT_INTENT);
    CryptoResultAnnotation resultAnnotation = CryptoResultAnnotation.createOpenPgpResultAnnotation(decryptionResult, signatureResult, pendingIntent, outputPart);
    onCryptoOperationSuccess(resultAnnotation);
}
Also used : OpenPgpDecryptionResult(org.openintents.openpgp.OpenPgpDecryptionResult) CryptoResultAnnotation(com.fsck.k9.mailstore.CryptoResultAnnotation) PendingIntent(android.app.PendingIntent) OpenPgpSignatureResult(org.openintents.openpgp.OpenPgpSignatureResult)

Aggregations

PendingIntent (android.app.PendingIntent)1 CryptoResultAnnotation (com.fsck.k9.mailstore.CryptoResultAnnotation)1 OpenPgpDecryptionResult (org.openintents.openpgp.OpenPgpDecryptionResult)1 OpenPgpSignatureResult (org.openintents.openpgp.OpenPgpSignatureResult)1