[ Index ] |
|
Code source de IMP H3 (4.1.5) |
[Code source] [Imprimer] [Statistiques]
Name of the S/MIME public key field in addressbook.
Poids: | 524 lignes (17 kb) |
Inclus ou requis: | 3 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
IMP_SMIME:: (27 méthodes):
IMP_SMIME()
addPersonalPublicKey()
addPersonalPrivateKey()
addAdditionalCert()
getPersonalPublicKey()
getPersonalPrivateKey()
getAdditionalCert()
deletePersonalKeys()
addPublicKey()
_encryptParameters()
getPublicKey()
listPublicKeys()
deletePublicKey()
_signParameters()
verifySignature()
decryptMessage()
getPassphrase()
storePassphrase()
unsetPassphrase()
viewPublicKeyURL()
savePublicKeyURL()
getJSOpenWinCode()
IMPencryptMIMEPart()
IMPsignMIMEPart()
IMPsignAndEncryptMIMEPart()
addFromPKCS12()
extractSignedContents()
IMP_SMIME() X-Ref |
Constructor. |
addPersonalPublicKey($key) X-Ref |
Add the personal public key to the prefs. param: mixed $key The public key to add (either string or array). |
addPersonalPrivateKey($key) X-Ref |
Add the personal private key to the prefs. param: mixed $key The private key to add (either string or array). |
addAdditionalCert($key) X-Ref |
Add the list of additional certs to the prefs. param: mixed $key The private key to add (either string or array). |
getPersonalPublicKey() X-Ref |
Get the personal public key from the prefs. return: string The personal S/MIME public key. |
getPersonalPrivateKey() X-Ref |
Get the personal private key from the prefs. return: string The personal S/MIME private key. |
getAdditionalCert() X-Ref |
Get any additional certificates from the prefs. return: string Additional signing certs for inclusion. |
deletePersonalKeys() X-Ref |
Deletes the specified personal keys from the prefs. |
addPublicKey($cert) X-Ref |
Add a public key to an address book. param: string $cert A public certificate to add. return: boolean True on successful add. |
_encryptParameters($address) X-Ref |
Returns the params needed to encrypt a message being sent to the specified email address. param: string $address The e-mail address of the recipient. return: array The list of parameters needed by encrypt(). |
getPublicKey($address) X-Ref |
Retrieves a public key by e-mail. The key will be retrieved from a user's address book(s). param: string $address The e-mail address to search for. return: string The S/MIME public key requested. |
listPublicKeys() X-Ref |
Retrieves all public keys from a user's address book(s). return: array All PGP public keys available. |
deletePublicKey($email) X-Ref |
Deletes a public key from a user's address book(s) by e-mail. param: string $email The e-mail address to delete. return: PEAR_Error Returns PEAR_Error object on error. |
_signParameters() X-Ref |
Returns the parameters needed for signing a message. return: array The list of parameters needed by encrypt(). |
verifySignature($text) X-Ref |
Verifies a signed message with a given public key. param: string $text The text to verify. return: stdClass See Horde_Crypt_smime::verify(). |
decryptMessage($text) X-Ref |
Decrypt a message with user's public/private keypair. param: string $text The text to decrypt. return: string See Horde_Crypt_smime::decrypt(). |
getPassphrase() X-Ref |
Gets the user's passphrase from the session cache. return: mixed The passphrase, if set. Returns false if the passphrase |
storePassphrase($passphrase) X-Ref |
Store's the user's passphrase in the session cache. param: string $passphrase The user's passphrase. return: boolean Returns true if correct passphrase, false if incorrect. |
unsetPassphrase() X-Ref |
Clear the passphrase from the session cache. |
viewPublicKeyURL($mime_part, $from) X-Ref |
Generates the javascript code for viewing public keys. param: MIME_Part &$mime_part The MIME_Part containing the public key. param: string $cache The MIME_Part identifier. return: string The URL for saving public keys. |
savePublicKeyURL($mime_part, $from) X-Ref |
Generates the javascript code for saving public keys. param: MIME_Part &$mime_part The MIME_Part containing the public key. param: string $cache The MIME_Part identifier. return: string The URL for saving public keys. |
getJSOpenWinCode($actionid, $reload = true, $params = null) X-Ref |
Print out the link for the javascript SMIME popup. param: integer $actionid The actionID to perform. param: mixed $reload If true, reload base window on close. If text, param: array $params Additional parameters needed for the reload return: string The javascript link. |
IMPencryptMIMEPart($mime_part, $to_address) X-Ref |
Encrypt a MIME_Part using S/MIME using IMP defaults. param: MIME_Part $mime_part The MIME_Part object to encrypt. param: mixed $to_address The e-mail address of the key to use for return: MIME_Part See Horde_Crypt_smime::encryptMIMEPart(). Returns |
IMPsignMIMEPart($mime_part) X-Ref |
Sign a MIME_Part using S/MIME using IMP defaults. param: MIME_Part $mime_part The MIME_Part object to sign. return: MIME_Part See Horde_Crypt_smime::signMIMEPart(). Returns |
IMPsignAndEncryptMIMEPart($mime_part, $to_address) X-Ref |
Sign and encrypt a MIME_Part using S/MIME using IMP defaults. param: MIME_Part $mime_part The MIME_Part object to sign and encrypt. param: string $to_address The e-mail address of the key to use for return: MIME_Part See Horde_Crypt_smime::signAndencryptMIMEPart(). |
addFromPKCS12($pkcs12, $password, $pkpass = null) X-Ref |
Store the public/private/additional certificates in the preferences from a given PKCS 12 file. param: string $pkcs12 The PKCS 12 data. param: string $password The password of the PKCS 12 file. param: string $pkpass The password to use to encrypt the private key. return: boolean True on success, PEAR_Error on error. |
extractSignedContents($data) X-Ref |
Extract the contents from signed S/MIME data. param: string $data The signed S/MIME data. return: string The contents embedded in the signed data. |
Généré le : Thu Nov 29 12:30:07 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |