convertTmrAccessesAsync method

Future<SealdConvertTmrAccessesResult> convertTmrAccessesAsync(
  1. String tmrJWT,
  2. Uint8List overEncryptionKey, {
  3. SealdTmrAccessesConvertFilters? conversionFilters,
  4. bool deleteOnConvert = true,
})

Convert all TMR Accesses addressed to a given auth factor and matching specified filters to classic message keys. All TMR accesses matching the specified filters must have been encrypted with the same overEncryptionKey.

tmrJWT - The TMR JWT. overEncryptionKey - The TMR over-encryption key. This MUST be a cryptographically random buffer of 64 bytes. conversionFilters - Convert tmr accesses filters. If multiple TMR Accesses with the auth factor, filter out the unwanted ones. deleteOnConvert - Whether or not to delete the TMR access after conversion. Returns the retrieved SealdConvertTmrAccessesResult instance.

Implementation

Future<SealdConvertTmrAccessesResult> convertTmrAccessesAsync(
    String tmrJWT, Uint8List overEncryptionKey,
    {SealdTmrAccessesConvertFilters? conversionFilters,
    bool deleteOnConvert = true}) {
  return compute(
      (Map<String, dynamic> args) => convertTmrAccesses(
          args["tmrJWT"], args["overEncryptionKey"],
          conversionFilters: args["conversionFilters"],
          deleteOnConvert: args["deleteOnConvert"]),
      {
        "tmrJWT": tmrJWT,
        "overEncryptionKey": overEncryptionKey,
        "conversionFilters": conversionFilters,
        "deleteOnConvert": deleteOnConvert
      });
}