JsonWebKey.ec constructor
JsonWebKey.ec({})
Creates a JsonWebKey of type EC
Implementation
JsonWebKey.ec(
{required String curve,
BigInt? xCoordinate,
BigInt? yCoordinate,
BigInt? privateKey,
String? keyId,
String? algorithm})
: this.fromJson({
'kty': 'EC',
'crv': curve,
if (xCoordinate != null) 'x': _intToBase64(xCoordinate),
if (yCoordinate != null) 'y': _intToBase64(yCoordinate),
if (privateKey != null) 'd': _intToBase64(privateKey),
if (keyId != null) 'kid': keyId,
if (algorithm != null) 'alg': algorithm
});