toJwk

Converts a public key to a JSON Web Key (JWK).

Return

The public key converted to a JWK.

Parameters

publicKey

The public key to convert as a byte array.

verMethodType

The type of verification method.

Throws

if the JWK type is unsupported.