getVerifier

fun getVerifier(curve: JwaCurve? = null): Signer

Retrieves a Signer to be used for verification based on the provided algorithm and curve.

This function fetches the appropriate Signer, which contains the verification logic for the cryptographic approach determined by the specified algorithm and curve.

Return

The corresponding Signer capable of verification.

Parameters

curve

The cryptographic curve to find a verifier for.

Throws

if the algorithm or curve is not supported.