JWKeyToCrypto(key: JsonWebKey,usage?: KeyUsage[],): Promise<CryptoKey>
Convert a JWK key representation of a Key to WebCrypto's representation.
key: JsonWebKey
optional
usage: KeyUsage[]
- can be
["verify"]/["encrypt"]or["sign"]/["decrypt"]for a public or private key, respectively
Promise<CryptoKey>