1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-30 08:12:06 +01:00

Avoid deprecated methods

This commit is contained in:
Paul Schaub 2021-06-10 12:42:03 +02:00
parent 27370fa925
commit 845779d40b
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ public class OpenPgpMetadata {
Map<OpenPgpV4Fingerprint, PGPSignature> verifiedSignatures = new ConcurrentHashMap<>(); Map<OpenPgpV4Fingerprint, PGPSignature> verifiedSignatures = new ConcurrentHashMap<>();
for (DetachedSignature detachedSignature : detachedSignatures) { for (DetachedSignature detachedSignature : detachedSignatures) {
if (detachedSignature.isVerified()) { if (detachedSignature.isVerified()) {
verifiedSignatures.put(detachedSignature.getFingerprint(), detachedSignature.getSignature()); verifiedSignatures.put(detachedSignature.getSigningKeyIdentifier().getSubkeyFingerprint(), detachedSignature.getSignature());
} }
} }
for (OnePassSignature onePassSignature : onePassSignatures) { for (OnePassSignature onePassSignature : onePassSignatures) {

View file

@ -171,7 +171,7 @@ public class EncryptDecryptTest {
assertTrue(KeyRingUtils.keyRingContainsKeyWithId(recipientPub, encryptionKey.getKeyId())); assertTrue(KeyRingUtils.keyRingContainsKeyWithId(recipientPub, encryptionKey.getKeyId()));
} }
assertEquals(SymmetricKeyAlgorithm.AES_256, encryptionResult.getSymmetricKeyAlgorithm()); assertEquals(SymmetricKeyAlgorithm.AES_256, encryptionResult.getEncryptionAlgorithm());
// Juliet trieth to comprehend Romeos words // Juliet trieth to comprehend Romeos words