fromJwk static method
- required Jwk jwk,
Create a new key instance from a JWK
Throws an AskarKeyException if key creation fails.
Implementation
static Key fromJwk({required Jwk jwk}) {
try {
return Key(askarKeyFromJwk(jwk.toString()).getValueOrException());
} catch (e) {
throw AskarKeyException('Failed to get key from JWK: $e');
}
}