JsonWebKey.symmetric constructor

JsonWebKey.symmetric({
  1. required BigInt key,
  2. String? keyId,
})

Creates a JsonWebKey of type oct

Implementation

JsonWebKey.symmetric({required BigInt key, String? keyId})
    : this.fromJson({
        'kty': 'oct',
        'k': _intToBase64(key),
        if (keyId != null) 'kid': keyId,
      });