PdfPkcs7RsaSigner class
Digitally Sign a document using Pkcs7 and RSA
- Inheritance
-
- Object
- PdfSigner
- PdfPkcs7Signer
- PdfPkcs7RsaSigner
Constructors
-
PdfPkcs7RsaSigner({required Uint8List privateKey, required HashAlgorithm digest, List<
X509> chain = const <X509>[], required X509 issuer, TimestampSignCallback? onTimestampSign}) -
Create a Pkcs7 RSA signer
const
Properties
-
chain
→ List<
X509> -
Certification chain. It is intended that the set be sufficient to
contain chains from a recognized "root" or "top-level certification
authority" to all of the signers in the signerInfos field
final
- digest → HashAlgorithm
-
The hash algorithm used to validate the document authenticity
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuer → X509
-
specifies the signer's certificate (and thereby the signer's
distinguished name and public key) by issuer distinguished name
and issuer-specific serial number.
final
- onTimestampSign → TimestampSignCallback?
-
Called to counter-sign the message with an authenticated timestamp
final
- privateKey → Uint8List
-
The private key used to digitally sign the document
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subFilter → String
-
Pdf SubFilter name
no setterinherited
Methods
-
asn1ToDart(
ASN1Object obj) → dynamic -
inherited
-
asn1ToString(
dynamic obj) → String -
inherited
-
commonDigestAlgorithm(
ASN1ObjectIdentifier signatureAlgorithmID) → HashAlgorithm -
inherited
-
createDigest(
HashAlgorithm algorithm, Uint8List input, Iterable< PdfSignRange> range) → Uint8List -
Create a hash of the message
inherited
-
derEncode(
Uint8List hash, HashAlgorithm digest) → Uint8List -
Encode a hash to a DER message
inherited
-
digestIdentifierHex(
HashAlgorithm algorithm) → String -
inherited
-
getDigest(
HashAlgorithm digestAlgorithm) → Digest -
inherited
-
listEquality(
Uint8List f, Uint8List o) → bool -
Test if two lists are equal
inherited
-
loadRSAPrivateKey(
Uint8List keyData) → RSAPrivateKey -
Parse BER encoded RSA key pair
inherited
-
namesFromAsn1(
ASN1Sequence sequence) → Iterable< MapEntry< ASN1ObjectIdentifier, dynamic> > -
Parse a list of names
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
padText(
String s, int amount) → String -
inherited
-
sign(
Uint8List input, Iterable< PdfSignRange> range) → Future<Uint8List> -
Sign the data and return the signature
override
-
toHex(
Iterable< int> ? list) → String -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited