mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-08 13:21:09 +01:00
Replace usage of KeyIdentifier.matches() with matchesExplicitly()
This commit is contained in:
parent
46367aff93
commit
65e2de8186
12 changed files with 22 additions and 18 deletions
|
|
@ -178,7 +178,7 @@ public class ModifyKeys {
|
|||
List<OpenPGPCertificate.OpenPGPComponentKey> encryptionSubkeys = info.getEncryptionSubkeys(EncryptionPurpose.COMMUNICATIONS);
|
||||
assertEquals(2, encryptionSubkeys.size());
|
||||
OpenPGPCertificate.OpenPGPComponentKey addedKey = encryptionSubkeys.stream()
|
||||
.filter(it -> !it.getKeyIdentifier().matches(encryptionSubkeyId)).findFirst()
|
||||
.filter(it -> !it.getKeyIdentifier().matchesExplicit(encryptionSubkeyId)).findFirst()
|
||||
.get();
|
||||
UnlockSecretKey.unlockSecretKey(secretKey.getSecretKey(addedKey.getKeyIdentifier()).getPGPSecretKey(), subkeyPassphrase);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue