[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/lib/MIME/Viewer/ -> pkcs7.php (sommaire)

(pas de description)

Poids: 487 lignes (18 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 lib/MIME/Headers.php
 lib/Crypt/SMIME.php

Définit 1 class

IMP_MIME_Viewer_pkcs7:: (11 méthodes):
  render()
  _outputSMIMEKey()
  _outputSMIMESigned()
  _outputSMIMEEncrypted()
  getType()
  _getRawSMIMEText()
  _initStatus()
  _outputStatus()
  _outputSMIMESignatureTest()
  renderAttachmentInfo()
  _getSMIMEType()


Classe: IMP_MIME_Viewer_pkcs7  - X-Ref

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

$Horde: imp/lib/MIME/Viewer/pkcs7.php,v 1.68.2.20 2007/01/02 13:55:00 jan Exp $

Copyright 2002-2007 Mike Cochrane <mike@graftonhall.co.nz>
Copyright 2004-2007 Michael Slusarz <slusarz@curecanti.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.

render($params)   X-Ref
Render out the currently set contents.

param: array $params  An array with a reference to a MIME_Contents
return: string  The rendered text in HTML.

_outputSMIMEKey()   X-Ref
Generates HTML output for the S/MIME key in
'application/pkcs7-signature' MIME_Parts.

return: string  The HTML output.

_outputSMIMESigned()   X-Ref
Generates HTML output for 'multipart/signed',
'application/pkcs7-signature' and
'application/x-pkcs7-signature' MIME_Parts.

return: string  The HTML output.

_outputSMIMEEncrypted()   X-Ref
Generates HTML output for 'multipart/encrypted',
'application/pkcs7-mime' and
'application/x-pkcs7-mime' MIME_Parts.

return: string  The HTML output.

getType()   X-Ref
Return text/html as the content-type.

return: string  "text/html" constant.

_getRawSMIMEText()   X-Ref
Get the headers of the S/MIME message.


_initStatus($src, $alt = '')   X-Ref
Pas de description

_outputStatus()   X-Ref
Pas de description

_outputSMIMESignatureTest($result, $email)   X-Ref
Generates HTML output for the S/MIME signature test.

param: string $result  Result string of the S/MIME output concerning
param: string $email   The email of the sender.
return: string  The HTML output.

renderAttachmentInfo($params)   X-Ref
Render out attachment information.

param: array $params  An array with a reference to a MIME_Contents
return: string  The rendered text in HTML.

_getSMIMEType()   X-Ref
Deterimne the S/MIME type of the message.

return: string  Either 'encrypted' or 'signed'.



Généré le : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics