mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
PgpPublicKeyParser: Cast Any? signature to PGPSignature
This commit is contained in:
parent
34d61d1f56
commit
16d33f885e
@ -2,6 +2,7 @@ package bisq.gradle.tasks.signature
|
||||
|
||||
import org.bouncycastle.openpgp.PGPPublicKey
|
||||
import org.bouncycastle.openpgp.PGPPublicKeyRing
|
||||
import org.bouncycastle.openpgp.PGPSignature
|
||||
import org.bouncycastle.openpgp.PGPUtil
|
||||
import org.bouncycastle.openpgp.jcajce.JcaPGPPublicKeyRingCollection
|
||||
import org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider
|
||||
@ -75,7 +76,8 @@ class PpgPublicKeyParser(
|
||||
private fun verifySubKeySignatures() {
|
||||
subKeys.forEach { subKey ->
|
||||
var hasValidSignature = false
|
||||
subKey.keySignatures.forEach { signature ->
|
||||
subKey.keySignatures.forEach { anySignature: Any? ->
|
||||
val signature = anySignature as PGPSignature
|
||||
signature.init(
|
||||
JcaPGPContentVerifierBuilderProvider().setProvider("BC"),
|
||||
masterKey!!
|
||||
|
Loading…
Reference in New Issue
Block a user