mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
KeyRingReader: Replace usage of deprecated PGPainless method with BC method
This commit is contained in:
parent
05300e3209
commit
d721f546b6
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,6 @@ import kotlin.jvm.Throws
|
|||
import org.bouncycastle.openpgp.*
|
||||
import org.bouncycastle.openpgp.api.OpenPGPImplementation
|
||||
import org.bouncycastle.util.io.Streams
|
||||
import org.pgpainless.PGPainless
|
||||
import org.pgpainless.key.collection.PGPKeyRingCollection
|
||||
import org.pgpainless.util.ArmorUtils
|
||||
|
||||
|
@ -229,7 +228,7 @@ class KeyRingReader {
|
|||
continue
|
||||
}
|
||||
if (next is PGPSecretKeyRing) {
|
||||
certificates.add(PGPainless.extractCertificate(next))
|
||||
certificates.add(next.toCertificate())
|
||||
continue
|
||||
}
|
||||
if (next is PGPPublicKeyRingCollection) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue