mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-27 21:37:58 +01:00
Avoid deprecated methods
This commit is contained in:
parent
27370fa925
commit
845779d40b
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ public class OpenPgpMetadata {
|
|||
Map<OpenPgpV4Fingerprint, PGPSignature> verifiedSignatures = new ConcurrentHashMap<>();
|
||||
for (DetachedSignature detachedSignature : detachedSignatures) {
|
||||
if (detachedSignature.isVerified()) {
|
||||
verifiedSignatures.put(detachedSignature.getFingerprint(), detachedSignature.getSignature());
|
||||
verifiedSignatures.put(detachedSignature.getSigningKeyIdentifier().getSubkeyFingerprint(), detachedSignature.getSignature());
|
||||
}
|
||||
}
|
||||
for (OnePassSignature onePassSignature : onePassSignatures) {
|
||||
|
|
|
@ -171,7 +171,7 @@ public class EncryptDecryptTest {
|
|||
assertTrue(KeyRingUtils.keyRingContainsKeyWithId(recipientPub, encryptionKey.getKeyId()));
|
||||
}
|
||||
|
||||
assertEquals(SymmetricKeyAlgorithm.AES_256, encryptionResult.getSymmetricKeyAlgorithm());
|
||||
assertEquals(SymmetricKeyAlgorithm.AES_256, encryptionResult.getEncryptionAlgorithm());
|
||||
|
||||
// Juliet trieth to comprehend Romeos words
|
||||
|
||||
|
|
Loading…
Reference in a new issue