1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-09 10:19:39 +02:00
This commit is contained in:
Paul Schaub 2025-05-14 12:17:36 +02:00
parent e552255aa6
commit af500bdec1
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -611,8 +611,7 @@ class KeyRingReaderTest {
@Test
public void testReadKeyRingWithArmoredSecretKey() throws IOException {
OpenPGPKey secretKeys = api.generateKey().modernKeyRing("Alice <alice@pgpainless.org>");
// remove PacketFormat argument once https://github.com/bcgit/bc-java/pull/1993 lands in BC
String armored = secretKeys.toAsciiArmoredString(PacketFormat.LEGACY);
String armored = secretKeys.toAsciiArmoredString();
PGPKeyRing keyRing = PGPainless.readKeyRing()
.keyRing(armored);