Documentation

IMP_Mime_Viewer_Smime extends Horde_Mime_Viewer_Base
in package

Renderer for viewing/decrypting of S/MIME v3.2 messages (RFC 5751).

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.

Tags
author

Mike Cochrane mike@graftonhall.co.nz

author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2000-2017 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

Table of Contents

Properties

$_capability  : array<string|int, mixed>
This driver's display capabilities.
$_impsmime  : IMP_Smime
IMP_Smime object.
$_metadata  : array<string|int, mixed>
Metadata for the current viewer/data.

Methods

_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()  : mixed
_getSmimeType()  : 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()  : mixed
Init the S/MIME Horde_Crypt object.
_outputSmimeKey()  : string
Generates HTML output for the S/MIME key.
_parseEnvelopedData()  : mixed
Parse enveloped (encrypted) data.
_parseSignedData()  : mixed
Parse signed data.
_renderInline()  : array<string|int, mixed>
Return the rendered inline version of the Horde_Mime_Part object.

Properties

$_capability

This driver's display capabilities.

protected array<string|int, mixed> $_capability = array('full' => \false, 'info' => \false, 'inline' => \true, 'raw' => \false)

$_metadata

Metadata for the current viewer/data.

protected array<string|int, mixed> $_metadata = array('compressed' => \false, 'embedded' => \true, 'forceinline' => \true)

Methods

_getEmbeddedMimeParts()

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 values
mixed

A Horde_Mime_Part with the embedded MIME part information or null if no embedded MIME parts exist.

_getPartStream()

protected _getPartStream(mixed $id) : mixed
Parameters
$id : mixed

_getSmimeType()

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
Parameters
$part : Horde_Mime_Part

MIME part with S/MIME data.

Return values
string

'signed-data', 'enveloped-data', or null.

_initSmime()

Init the S/MIME Horde_Crypt object.

protected _initSmime() : mixed

_outputSmimeKey()

Generates HTML output for the S/MIME key.

protected _outputSmimeKey() : string
Return values
string

The HTML output.

_parseEnvelopedData()

Parse enveloped (encrypted) data.

protected _parseEnvelopedData() : mixed
Return values
mixed

See self::_getEmbeddedMimeParts().

_parseSignedData()

Parse signed data.

protected _parseSignedData([bool $sig_only = false ]) : mixed
Parameters
$sig_only : bool = false

Only do signature checking?

Return values
mixed

See self::_getEmbeddedMimeParts().

_renderInline()

Return the rendered inline version of the Horde_Mime_Part object.

protected _renderInline() : array<string|int, mixed>
Return values
array<string|int, mixed>

See parent::render().


        
On this page

Search results