Pkcs7 class

A Pkcs7 Message

Mixed-in types

Constructors

Pkcs7(ASN1Sequence asn1)
Creates a Pkcs7 message from an ASN1Sequence.
factory
Pkcs7.fromDer(Uint8List der)
Creates a Pkcs7 message from DER encoded bytes.
factory
Pkcs7.fromPem(String pem)
Creates a Pkcs7 message from a PEM encoded string.
factory

Properties

asn1 ASN1Sequence
ASN1 object representing the Pkcs7 message
no setter
certificates Iterable<X509>
The certification chain of the message.
no setter
contentType ASN1ObjectIdentifier
Message type
no setter
crls Iterable<CertificateRevocationList>
The certificate revocation lists of the message.
no setter
der Uint8List
DER representation of the Pkcs7 message
no setter
digestAlgorithms Iterable<ASN1ObjectIdentifier>
The signature Algorithm ID of the message.
no setter
encapsulatedContent Uint8List?
Encapsulated message content
no setter
encapsulatedContentType ASN1ObjectIdentifier
Encapsulated message content type
no setter
hashCode int
The hash code for this object.
no setterinherited
pem String
PEM representation of the Pkcs7 message
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signerInfo Iterable<Pkcs7SignerInfo>
List of Pkcs7 message signatures.
no setter
version int
The version number of the message.
no setter

Methods

asn1ToDart(ASN1Object obj) → dynamic
inherited
asn1ToString(dynamic obj) String
inherited
commonDigestAlgorithm(ASN1ObjectIdentifier signatureAlgorithmID) HashAlgorithm
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
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
toHex(Iterable<int>? list) String
inherited
toString() String
A string representation of this object.
override
verify(List<X509> trusted) Pkcs7SignerInfo
Verify the Pkcs7 validity against a list of trusted certificates and returns the validated signature

Operators

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