SignatureRecord constructor

SignatureRecord({
  1. String? signatureType,
  2. String hashType = "SHA-256",
  3. Uint8List? signature,
  4. String? signatureURI = "",
  5. String certificateFormat = "X.509",
  6. List<Uint8List>? certificateStore,
  7. String? certificateURI = "",
})

Implementation

SignatureRecord(
    {String? signatureType,
    String hashType = "SHA-256",
    Uint8List? signature,
    this.signatureURI = "",
    String certificateFormat = "X.509",
    List<Uint8List>? certificateStore,
    this.certificateURI = ""}) {
  this.signatureType = signatureType;
  this.hashType = hashType;
  this.signature = signature ?? Uint8List(0);
  this.certificateFormat = certificateFormat;
  _certificateStore = <Uint8List>[];
  if (certificateStore != null) {
    for (var c in certificateStore) {
      addCertificateStore(c);
    }
  }
}