mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 18:59:39 +02:00
Rename PainlessResult -> OpenPpgMetadata
This commit is contained in:
parent
8537f9a165
commit
9017fcaba0
6 changed files with 23 additions and 23 deletions
|
@ -40,7 +40,7 @@ import org.pgpainless.algorithm.KeyFlag;
|
|||
import org.pgpainless.algorithm.PublicKeyAlgorithm;
|
||||
import org.pgpainless.algorithm.SymmetricKeyAlgorithm;
|
||||
import org.pgpainless.decryption_verification.DecryptionStream;
|
||||
import org.pgpainless.decryption_verification.PainlessResult;
|
||||
import org.pgpainless.decryption_verification.OpenPgpMetadata;
|
||||
import org.pgpainless.encryption_signing.EncryptionStream;
|
||||
import org.pgpainless.key.collection.PGPKeyRing;
|
||||
import org.pgpainless.key.generation.KeySpec;
|
||||
|
@ -142,7 +142,7 @@ public class EncryptDecryptTest extends AbstractPGPainlessTest {
|
|||
.signWith(keyDecryptor, senderSec)
|
||||
.noArmor();
|
||||
|
||||
PainlessResult encryptionResult = encryptor.getResult();
|
||||
OpenPgpMetadata encryptionResult = encryptor.getResult();
|
||||
|
||||
assertFalse(encryptionResult.getAllSignatureKeyFingerprints().isEmpty());
|
||||
for (long keyId : encryptionResult.getAllSignatureKeyFingerprints()) {
|
||||
|
@ -180,7 +180,7 @@ public class EncryptDecryptTest extends AbstractPGPainlessTest {
|
|||
decryptor.close();
|
||||
|
||||
assertTrue(Arrays.equals(secretMessage, decryptedSecretMessage.toByteArray()));
|
||||
PainlessResult result = decryptor.getResult();
|
||||
OpenPgpMetadata result = decryptor.getResult();
|
||||
assertTrue(result.containsVerifiedSignatureFrom(senderPub));
|
||||
assertTrue(result.isIntegrityProtected());
|
||||
assertTrue(result.isSigned());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue