PHP Class IMP_Mime_Viewer_Smime, horde

This class handles the following MIME types: application/pkcs7-mime application/x-pkcs7-mime application/pkcs7-signature (in multipart/signed part) application/x-pkcs7-signature (in multipart/signed part) This class may add the following parameters to the URL: 'smime_verify_msg' - (boolean) Do verification of S/MIME message. 'view_smime_key' - (boolean) Display the S/MIME Key.
Author: Mike Cochrane ([email protected])
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Mime_Viewer_Base
ファイルを表示 Open project: horde/horde

Protected Properties

Property Type Description
$_capability array This driver's display capabilities.
$_impsmime IMP_Smime IMP_Smime object.
$_metadata array Metadata for the current viewer/data.

Protected Methods

Method Description
_getEmbeddedMimeParts ( ) : mixed If this MIME part can contain embedded MIME parts, and those embedded MIME parts exist, return an altered version of the Horde_Mime_Part that contains the embedded MIME part information.
_getPartStream ( $id )
_getSmimeType ( Horde_Mime_Part $part ) : string Determines the S/MIME type of a part. Uses the smime-type content parameter (if it exists), and falls back to ASN.1 parsing of data if it doesn't exist.
_initSmime ( ) Init the S/MIME Horde_Crypt object.
_outputSmimeKey ( ) : string Generates HTML output for the S/MIME key.
_parseEnvelopedData ( ) : mixed Parse enveloped (encrypted) data.
_parseSignedData ( boolean $sig_only = false ) : mixed Parse signed data.
_renderInline ( ) : array Return the rendered inline version of the Horde_Mime_Part object.

Method Details

_getEmbeddedMimeParts() protected method

If this MIME part can contain embedded MIME parts, and those embedded MIME parts exist, return an altered version of the Horde_Mime_Part that contains the embedded MIME part information.
protected _getEmbeddedMimeParts ( ) : mixed
return mixed A Horde_Mime_Part with the embedded MIME part information or null if no embedded MIME parts exist.

_getPartStream() protected method

protected _getPartStream ( $id )

_getSmimeType() protected method

Determines the S/MIME type of a part. Uses the smime-type content parameter (if it exists), and falls back to ASN.1 parsing of data if it doesn't exist.
protected _getSmimeType ( Horde_Mime_Part $part ) : string
$part Horde_Mime_Part MIME part with S/MIME data.
return string 'signed-data', 'enveloped-data', or null.

_initSmime() protected method

Init the S/MIME Horde_Crypt object.
protected _initSmime ( )

_outputSmimeKey() protected method

Generates HTML output for the S/MIME key.
protected _outputSmimeKey ( ) : string
return string The HTML output.

_parseEnvelopedData() protected method

Parse enveloped (encrypted) data.
protected _parseEnvelopedData ( ) : mixed
return mixed See self::_getEmbeddedMimeParts().

_parseSignedData() protected method

Parse signed data.
protected _parseSignedData ( boolean $sig_only = false ) : mixed
$sig_only boolean Only do signature checking?
return mixed See self::_getEmbeddedMimeParts().

_renderInline() protected method

Return the rendered inline version of the Horde_Mime_Part object.
protected _renderInline ( ) : array
return array See parent::render().

Property Details

$_capability protected_oe property

This driver's display capabilities.
protected array $_capability
return array

$_impsmime protected_oe property

IMP_Smime object.
protected IMP_Smime $_impsmime
return IMP_Smime

$_metadata protected_oe property

Metadata for the current viewer/data.
protected array $_metadata
return array