mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 02:39:39 +02:00
Replace all remaining usages of PGPainless.generateKeyRing()
This commit is contained in:
parent
686244a730
commit
049f7422c0
8 changed files with 64 additions and 62 deletions
|
@ -17,9 +17,9 @@ public class ArmorTest {
|
|||
|
||||
@Test
|
||||
public void armor() throws IOException {
|
||||
byte[] data = PGPainless.generateKeyRing()
|
||||
PGPainless api = PGPainless.getInstance();
|
||||
byte[] data = api.generateKey()
|
||||
.modernKeyRing("Alice")
|
||||
.getPGPSecretKeyRing()
|
||||
.getEncoded();
|
||||
byte[] knownGoodArmor = ArmorUtils.toAsciiArmoredString(data)
|
||||
.replace("Version: PGPainless\n", "") // armor command does not add version anymore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue