mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +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.PGPPublicKey
|
||||||
import org.bouncycastle.openpgp.PGPPublicKeyRing
|
import org.bouncycastle.openpgp.PGPPublicKeyRing
|
||||||
|
import org.bouncycastle.openpgp.PGPSignature
|
||||||
import org.bouncycastle.openpgp.PGPUtil
|
import org.bouncycastle.openpgp.PGPUtil
|
||||||
import org.bouncycastle.openpgp.jcajce.JcaPGPPublicKeyRingCollection
|
import org.bouncycastle.openpgp.jcajce.JcaPGPPublicKeyRingCollection
|
||||||
import org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider
|
import org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider
|
||||||
@ -75,7 +76,8 @@ class PpgPublicKeyParser(
|
|||||||
private fun verifySubKeySignatures() {
|
private fun verifySubKeySignatures() {
|
||||||
subKeys.forEach { subKey ->
|
subKeys.forEach { subKey ->
|
||||||
var hasValidSignature = false
|
var hasValidSignature = false
|
||||||
subKey.keySignatures.forEach { signature ->
|
subKey.keySignatures.forEach { anySignature: Any? ->
|
||||||
|
val signature = anySignature as PGPSignature
|
||||||
signature.init(
|
signature.init(
|
||||||
JcaPGPContentVerifierBuilderProvider().setProvider("BC"),
|
JcaPGPContentVerifierBuilderProvider().setProvider("BC"),
|
||||||
masterKey!!
|
masterKey!!
|
||||||
|
Loading…
Reference in New Issue
Block a user