Class IMP_MIME_Viewer_pkcs7

Description

The IMP_MIME_Viewer_pkcs7 class allows viewing/decrypting of S/MIME messages.

This class implements parts of RFC 2630, RFC 2632, and RFC 2633.

This class handles the following MIME types: application/pkcs7-mime application/pkcs7-signature application/x-pkcs7-mime application/x-pkcs7-signature

This class may add the following parameters to the URL: 'smime_verify_msg' -- Do verification of S/MIME signed data.

$Horde: imp/lib/MIME/Viewer/pkcs7.php,v 1.68.2.30 2011-01-14 15:19:21 jan Exp $

Copyright 2002-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.

Located in /lib/MIME/Viewer/pkcs7.php (line 31)

MIME_Viewer
   |
   --IMP_MIME_Viewer_pkcs7
Variable Summary
Method Summary
 string getType ()
 string render (array $params)
 string renderAttachmentInfo (array $params)
 void _initStatus ( $src, [ $alt = ''])
 void _outputStatus ()
Variables
MIME_Contents $_contents = null (line 52)

Pointer to the MIME_Contents item.

boolean $_forceinline = true (line 77)

Some mailers set S/MIME messages to always be attachments. However,

most of the time S/MIME is used to secure the contents of the message, so displaying as an attachment makes no sense. Therefore, force viewing inline (or at least let MIME_Viewer/MIME_Contents make the determination on whether the data can be viewed inline or not).

IMP_Headers $_headers (line 66)

The IMP_Headers object for the message data.

string $_icon = null (line 45)

Classwide cache for icons for status messages.

IMP_SMIME $_impSmime (line 38)

IMP_SMIME object.

array $_status = array() (line 59)

Classwide cache for status messages.

Methods
getType (line 363)

Return text/html as the content-type.

  • return: "text/html" constant.
string getType ()
render (line 87)

Render out the currently set contents.

  • return: The rendered text in HTML.
string render (array $params)
  • array $params: An array with a reference to a MIME_Contents object.
renderAttachmentInfo (line 475)

Render out attachment information.

  • return: The rendered text in HTML.
string renderAttachmentInfo (array $params)
  • array $params: An array with a reference to a MIME_Contents object.
_initStatus (line 410)
void _initStatus ( $src, [ $alt = ''])
  • $src
  • $alt
_outputStatus (line 417)
void _outputStatus ()

Documentation generated on Sun, 30 Jan 2011 05:28:15 +0000 by phpDocumentor 1.4.3