mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-05 03:41:07 +01:00
Add PGPainless.asciiArmor(Collection<OpenPGPCertificate>, PacketFormat)
This commit is contained in:
parent
0aa71cb816
commit
fc056edd93
1 changed files with 9 additions and 0 deletions
|
|
@ -76,6 +76,15 @@ class PGPainless(
|
|||
return certOrKey.toAsciiArmoredString(packetFormat, armorBuilder)
|
||||
}
|
||||
|
||||
@JvmOverloads
|
||||
fun toAsciiArmor(
|
||||
certsOrKeys: Collection<OpenPGPCertificate>,
|
||||
packetFormat: PacketFormat = PacketFormat.ROUNDTRIP
|
||||
): String {
|
||||
return certsOrKeys.joinToString(
|
||||
separator = "\n", transform = { it.toAsciiArmoredString(packetFormat) })
|
||||
}
|
||||
|
||||
@JvmOverloads
|
||||
fun toAsciiArmor(
|
||||
signature: OpenPGPSignature,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue