PdfSign class

Digitally Sign a document

Constructors

PdfSign.pkcs7(PdfPkcs7Signer signer, {String? name, String? location, String? reason, String? contactInfo, PdfSignPerms? permissions, int reservedSpace = 10000})
Digitally Sign a document using an external pkcs7 signature
PdfSign.pkcs7Rsa({required X509 issuer, required List<X509> chain, required Uint8List privateKey, String? name, String? location, String? reason, String? contactInfo, HashAlgorithm? digest, PdfSignPerms? permissions, int reservedSpace = 10000, TimestampSignCallback? onTimestampSign})
Digitally Sign a document using a pkcs7 RSA signature
PdfSign.rsaSha1({required List<Uint8List> certificates, required Uint8List privateKey, String? name, String? location, String? reason, String? contactInfo, HashAlgorithm? digest, PdfSignPerms? permissions})
Digitally Sign a document using RSA and SHA

Properties

certificates List<Uint8List>
The certificate chain used to validate the document
final
contactInfo String?
Information provided by the signer to enable a recipient to contact the signer to verify the signature
final
hashCode int
The hash code for this object.
no setterinherited
hasMDP bool
Modification detection and prevention
no setter
location String?
The machine name or physical location of the signing
final
name String?
Name of the person or authority signing the document
final
permissions PdfSignPerms?
Document permissions
final
reason String?
The reason for the signing, such as (I agree...)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preSign(PdfObject<PdfDataType> object, PdfDict<PdfDataType> params) → void
sign(PdfObject<PdfDataType> object, PdfStream os, PdfDict<PdfDataType> params, int? offsetStart, int? offsetEnd) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

pemCertificate(String cert) Uint8List?
Convert a PEM x509 certificate to BER
pemPrivateKey(String privateKey) Uint8List?
Convert a PEM private key to BER