QzWeb constructor

QzWeb({
  1. bool backendMode = false,
  2. String algorithm = 'SHA512',
  3. String? certificateUrl,
  4. String? signatureUrl,
  5. String? certificateString,
  6. String? signatureString,
})

Implementation

QzWeb(
    {bool backendMode = false,
    String algorithm = 'SHA512',
    String? certificateUrl,
    String? signatureUrl,
    String? certificateString,
    String? signatureString}) {
  if (backendMode) {
    assert(certificateUrl != null && signatureUrl != null);
    _enableBackendSecurity(certificateUrl!, algorithm, signatureUrl!);
  } else {
    assert(certificateString != null && signatureString != null);
    _enableFrontendSecurity(certificateString!, algorithm, signatureString!);
  }
}