Provides routines to set or retrieve the signature part of a signed message.
- author Zaahid Bateson
Methods |
public __construct(ZBateson |
public getSignedMessageAsString(ZBateson Returns a string containing the entire body (content) of a signed message for verification or calculating a signature. Non-CRLF new lines are replaced to always be CRLF.
|
public getSignedMessageStream(ZBateson Returns a stream that can be used to read the content part of a signed message, which can be used to sign an email or verify a signature. The method simply returns the stream for the first child. No verification of whether the message is in fact a signed message is performed. Note that unlike getSignedMessageAsString, getSignedMessageStream doesn't replace new lines.
|
public overwrite8bitContentEncoding(ZBateson Loops over parts of the message and sets the content-transfer-encoding header to quoted-printable for text/* mime parts, and to base64 otherwise for parts that are '8bit' encoded. Used for multipart/signed messages which doesn't support 8bit transfer encodings. |
public setMessageAsMultipartSigned(ZBateson The passed message is set as multipart/signed, and a new part is created below it with content headers, content and children copied from the message.
|
public setSignature(ZBateson Sets the signature of the message to $body, creating a signature part if one doesn't exist.
|
Properties |
Properties |
private ZBateson
|
private ZBateson
|