symmetric static method

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

Creates a JsonWebKey of type oct

Implementation

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