Hi currently i am creating my verifier like below.
val jsonLdObject = getJsonLDObjectFromString(jsonLdString)
val ldProof = LdProof.getFromJsonLDObject(jsonLdObject)
val verifier =
try {
LdVerifierRegistry.getLdVerifierBySignatureSuiteTerm(ldProof.type)
} catch (ex: Exception) {
Log.d("webOfTrustVerifyJsonLd", "Unable to get verifier: ${ex::class.java.simpleName} - ${ex.message}")
null
}
After creating the verifier i understand that the publicKeyVerifier needs to be created. I have the publicKey JWK.
My questions is, what is the way to determine the algorithm String when creating the PublicKeyVerifier below?
My JWK alg is null.
val parsedJwk = JWK.fromJson(publicJwkJsonObject.toString().replace("\\", ""))
val byteVerifier = PublicKeyVerifierFactory.publicKeyVerifierForJWK(parsedJwk, "some Algorithm") <----- here
Hi currently i am creating my verifier like below.
After creating the verifier i understand that the publicKeyVerifier needs to be created. I have the publicKey JWK. My questions is, what is the way to determine the algorithm String when creating the
PublicKeyVerifier
below? My JWKalg
is null.