AbstractProtectedconstructorProtected ReadonlyencryptionThe encryption algorithms in ranked (strongest-first) order.
Protected ReadonlystoreThe injectable certificate/key store (set by the concrete C2b context).
null on contexts that resolve everything from an explicit CmsSigner /
CmsRecipient and never do mailbox lookups.
Whether entities should be canonically prepared (armored "From " lines,
trailing whitespace trimmed) before signing (C#: PrepareBeforeSigning,
default true).
The signature protocol (multipart/signed protocol parameter).
The encryption protocol (multipart/encrypted protocol parameter).
The key exchange protocol.
The enabled encryption algorithms, in ranked order.
Whether the specified protocol is supported by this context.
The micalg name for a digest algorithm (multipart/signed micalg).
The digest algorithm from a micalg parameter value.
StaticgetThe OID for a digest algorithm (C#: GetDigestOid).
StatictryMaps a digest OID back to a DigestAlgorithm (C#: TryGetDigestAlgorithm).
Whether the specified encryption algorithm is enabled.
ProtectedgetThe preferred encryption algorithm for the specified recipients, based on each recipient's supported algorithms, the enabled algorithms, and the rank. If a recipient's supported algorithms are unknown, Triple-DES is assumed.
AbstractcompressCompress a MIME stream into an application/pkcs7-mime part.
AbstractdecompressDecompress compressed-data into a MIME entity.
AbstractsignCreate a detached CMS signature (application/pkcs7-signature) from a CmsSigner.
AbstractsignCreate a detached CMS signature resolving the signer via the store.
AbstractencapsulatedCreate an encapsulated (application/pkcs7-mime, signed-data) signature from a CmsSigner.
AbstractencapsulatedCreate an encapsulated signature resolving the signer via the store.
AbstractverifyVerify a detached signature over content (multipart/signed path).
AbstractverifyVerify encapsulated signed-data and return the signatures + unwrapped entity.
AbstractencryptEncrypt a MIME stream to an explicit recipient collection.
AbstractencryptEncrypt a MIME stream to recipient mailboxes, resolving certificates via the store.
AbstractdecryptAbstractdecryptDecrypt enveloped-data, writing the decrypted MIME stream to output.
AbstractimportImport the certificates (and CRLs) contained in the DER/PKCS#7 stream.
AbstractimportRelease any resources held by the context (C#: IDisposable). Default no-op.
An S/MIME cryptography context. The portable orchestration lives here; the crypto primitives and certificate/key storage are abstract and implemented by the concrete pkijs-backed context in wave C2b.