deleteGroupTMRTemporaryKey method
Delete a group TMR temporary key.
groupId
The Id of the group for which to delete a TMR key.
temporaryKeyId
The Id of the temporary key to delete.
Implementation
void deleteGroupTMRTemporaryKey(String groupId, String temporaryKeyId) {
if (_closed) {
throw SealdException(
code: "INSTANCE_CLOSED",
id: "FLUTTER_INSTANCE_CLOSED",
description: "Instance already closed.");
}
final Pointer<Utf8> nativeGroupId = groupId.toNativeUtf8();
final Pointer<Utf8> nativeTemporaryKeyId = temporaryKeyId.toNativeUtf8();
final Pointer<Pointer<NativeSealdError>> err =
calloc<Pointer<NativeSealdError>>();
final int resultCode = _bindings.SealdSdk_DeleteGroupTMRTemporaryKey(
_ptr.pointer(), nativeGroupId, nativeTemporaryKeyId, err);
calloc.free(nativeGroupId);
calloc.free(nativeTemporaryKeyId);
if (resultCode != 0) {
throw SealdException._fromCPtr(err);
} else {
calloc.free(err);
}
}