addTimestamp method Null safety

void addTimestamp(
  1. {required TimestampResponse tsr}
)

Add a timestamp to the digest

Implementation

void addTimestamp({required TimestampResponse tsr}) {
  _unauthenticatedAttributes.add(ASN1Sequence(elements: [
    ASN1ObjectIdentifier(
        [1, 2, 840, 113549, 1, 9, 16, 2, 14]), // id-aa-timeStampToken
    ASN1Set(elements: [tsr.timeStampToken])
  ]));
}