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 ed92f321dd
commit eaeb0e1ab2
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -611,8 +611,7 @@ class KeyRingReaderTest {
@Test @Test
public void testReadKeyRingWithArmoredSecretKey() throws IOException { public void testReadKeyRingWithArmoredSecretKey() throws IOException {
OpenPGPKey secretKeys = api.generateKey().modernKeyRing("Alice <alice@pgpainless.org>"); 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();
String armored = secretKeys.toAsciiArmoredString(PacketFormat.LEGACY);
PGPKeyRing keyRing = PGPainless.readKeyRing() PGPKeyRing keyRing = PGPainless.readKeyRing()
.keyRing(armored); .keyRing(armored);