setLotlUrl method

void setLotlUrl(
  1. String? lotlUrl
)

Sets the the URL to the LoTL (List of Trust List).

param lotlUrl The URL to the LoTL (List of Trust List). throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

void setLotlUrl(String? lotlUrl) {
  Pointer<Char>? pLotlUrl = lotlUrl?.toNativeUtf8().cast<Char>();
  try {
    var err = biosealSDK.id3Bioseal_SetLotlUrl(_pHandle.value, pLotlUrl ?? nullptr);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
  } finally {
    if (pLotlUrl != null) {
      calloc.free(pLotlUrl);
    }
  }
}