MultipartSigned.sign

Attempts to sign the content MIME part with userid's private key using the ctx signing context. If successful, a new multipart/signed object is returned.

Parameters

ctx gmime.crypto_context.CryptoContext

a #GMimeCryptoContext

entity gmime.object.ObjectWrap

MIME part to sign

userid string

user id to sign with

Return Value

Type: gmime.multipart_signed.MultipartSigned

a new #GMimeMultipartSigned object on success or null on fail. If signing fails, an exception will be set on err to provide information as to why the failure occurred.

Throws