PdfSignature constructor
PdfSignature(
- PdfDocument pdfDocument, {
- required PdfSignatureBase value,
- required Set<
PdfSigFlags> flags, - List<
Uint8List> ? crl, - List<
Uint8List> ? cert, - List<
Uint8List> ? ocsp,
Implementation
PdfSignature(
PdfDocument pdfDocument, {
required this.value,
required this.flags,
List<Uint8List>? crl,
List<Uint8List>? cert,
List<Uint8List>? ocsp,
}) : super(
pdfDocument,
params: PdfDict.values({
'/Type': const PdfName('/Sig'),
}),
) {
if (crl != null) {
for (final o in crl) {
this.crl.add(PdfObjectStream(pdfDocument)..buf.putBytes(o));
}
}
if (cert != null) {
for (final o in cert) {
this.cert.add(PdfObjectStream(pdfDocument)..buf.putBytes(o));
}
}
if (ocsp != null) {
for (final o in ocsp) {
this.ocsp.add(PdfObjectStream(pdfDocument)..buf.putBytes(o));
}
}
}