[ Index ] |
|
Code source de IMP H3 (4.1.5) |
[Code source] [Imprimer] [Statistiques]
Name of PGP public key field in addressbook.
Poids: | 709 lignes (25 kb) |
Inclus ou requis: | 6 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
IMP_PGP:: (30 méthodes):
IMP_PGP()
generatePersonalKeys()
addPersonalPublicKey()
addPersonalPrivateKey()
getPersonalPublicKey()
getPersonalPrivateKey()
deletePersonalKeys()
addPublicKey()
getPublicKey()
listPublicKeys()
deletePublicKey()
parseMessage()
parseMessageOutput()
getSignedMessage()
getFromPublicKeyserver()
sendToPublicKeyserver()
_keyserverConnect()
verifySignature()
decryptMessage()
getPassphrase()
storePassphrase()
unsetPassphrase()
savePublicKeyURL()
getJSOpenWinCode()
_signParameters()
_encryptParameters()
IMPsignMIMEPart()
IMPencryptMIMEPart()
IMPsignAndEncryptMIMEPart()
publicKeyMIMEPart()
IMP_PGP() X-Ref |
Constructor |
generatePersonalKeys($name, $email, $passphrase, $comment = '',$keylength = 1024) X-Ref |
Generate the personal Public/Private keypair and store in prefs. param: string $realname See Horde_Crypt_pgp:: param: string $email See Horde_Crypt_pgp:: param: string $passphrase See Horde_Crypt_pgp:: param: string $comment See Horde_Crypt_pgp:: param: string $keylength See Horde_Crypt_pgp:: return: PEAR_Error Returns a PEAR_Error object on error. |
addPersonalPublicKey($public_key) X-Ref |
Add the personal public key to the prefs. param: mixed $public_key The public key to add (either string or |
addPersonalPrivateKey($private_key) X-Ref |
Add the personal private key to the prefs. param: mixed $private_key The private key to add (either string or |
getPersonalPublicKey() X-Ref |
Get the personal public key from the prefs. return: string The personal PGP public key. |
getPersonalPrivateKey() X-Ref |
Get the personal private key from the prefs. return: string The personal PGP private key. |
deletePersonalKeys() X-Ref |
Deletes the specified personal keys from the prefs. |
addPublicKey($public_key) X-Ref |
Add a public key to an address book. param: string $public_key An PGP public key. return: array See Horde_Crypt_pgp::pgpPacketInformation() |
getPublicKey($address, $fingerprint = null) X-Ref |
Retrieves a public key by e-mail. First, the key will be attempted to be retrieved from a user's address book(s). Second, if unsuccessful, the key is attempted to be retrieved via a public PGP keyserver. param: string $address The e-mail address to search by. param: string $fingerprint The fingerprint of the user's key. return: string The PGP public key requested. Returns PEAR_Error object |
listPublicKeys() X-Ref |
Retrieves all public keys from a user's address book(s). return: array All PGP public keys available. Returns PEAR_Error object |
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. |
parseMessage($text) X-Ref |
Parse a message into its PGP components. param: string $text See Horde_Crypt_pgp::parsePGPData() return: array Returns an array of MIME_Part objects. |
parseMessageOutput(&$part, &$contents) X-Ref |
Renders a text message with PGP components. param: MIME_Part &$part The MIME_Part containing the data to param: MIME_Contents &$contents The MIME_Contents:: module to use to return: string Returns the rendered text. |
getSignedMessage(&$mime_part) X-Ref |
Returns the signed data only for a plaintext signed MIME_Part. param: MIME_Part $mime_part The MIME_Part object with a plaintext PGP return: string The contents of the signed message. |
getFromPublicKeyserver($fingerprint) X-Ref |
Get a public key via a public PGP keyserver. param: string $fingerprint The fingerprint of the requested key. return: string See Horde_Crypt_pgp::getPublicKeyserver() |
sendToPublicKeyserver($pubkey) X-Ref |
Send a public key to a public PGP keyserver. param: string $pubkey The PGP public key. return: string See Horde_Crypt_pgp::putPublicKeyserver() |
_keyserverConnect($data, $method) X-Ref |
Connect to the keyservers param: string $data The data to send to the keyserver. param: string $method The method to use - either 'get' or 'put'. return: string See Horde_Crypt_pgp::getPublicKeyserver() -or- |
verifySignature($text, $address, $signature = '') X-Ref |
Verifies a signed message with a given public key. param: string $text The text to verify. param: string $address E-mail address of public key. param: string $signature A PGP signature block. return: string See Horde_Crypt_pgp::decryptSignature() |
decryptMessage($text, $passphrase = true) X-Ref |
Decrypt a message with user's public/private keypair. param: string $text The text to decrypt. param: boolean $passphrase Whether a passphrase has to be used. return: string The decrypted message. Returns PEAR_Error object on |
getPassphrase() X-Ref |
Gets the user's passphrase from the session cache. return: string The passphrase, if set. |
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. |
savePublicKeyURL(&$mime_part, $cache = null) 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 PGP popup. param: string $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. |
_signParameters() X-Ref |
Provide the list of parameters needed for signing a message. return: array The list of parameters needed by encrypt(). |
_encryptParameters($addresses) X-Ref |
Provide the list of parameters needed for encrypting a message. param: array $addresses The e-mail address of the keys to use for return: array The list of parameters needed by encrypt(). |
IMPsignMIMEPart($mime_part) X-Ref |
Sign a MIME_Part using PGP using IMP default parameters. param: MIME_Part $mime_part The MIME_Part object to sign. return: MIME_Part See Horde_Crypt_pgp::signMIMEPart(). Returns |
IMPencryptMIMEPart($mime_part, $addresses) X-Ref |
Encrypt a MIME_Part using PGP using IMP default parameters. param: MIME_Part $mime_part The MIME_Part object to encrypt. param: array $addresses The e-mail address of the keys to use for return: MIME_Part See Horde_Crypt_pgp::encryptMIMEPart(). Returns |
IMPsignAndEncryptMIMEPart($mime_part, $addresses) X-Ref |
Sign and Encrypt a MIME_Part using PGP using IMP default parameters. param: MIME_Part $mime_part The MIME_Part object to sign and encrypt. param: array $addresses The e-mail address of the keys to use for return: MIME_Part See Horde_Crypt_pgp::signAndencryptMIMEPart(). |
publicKeyMIMEPart() X-Ref |
Generate a MIME_Part object, in accordance with RFC 2015/3156, that contains the user's public key. return: MIME_Part See Horde_Crypt_pgp::publicKeyMIMEPart(). |
Généré le : Thu Nov 29 12:30:07 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |