PHP Class Horde_Pgp_Element_Key, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Pgp_Element
Datei anzeigen Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_cache array Cached data.

Public Methods

Method Description
__get ( $name )
containsEmail ( $email ) : boolean Does this key contain an e-mail address?
getEncryptKeys ( ) : array Return the list of verified encryption subkeys in this key.
getFingerprints ( ) : array Return the list of key fingerprints.
getPublicKey ( ) : Horde_Pgp_Element_PublicKey Return the public key.
getSignKeys ( ) : array Returns the list of signing subkeys within this key.
getUserIds ( ) : array Returns the list of user ID information associated with this key.

Protected Methods

Method Description
_parse ( ) Parse the message data, verifying the key contents.
_parseCreation ( $p )
_parseRevokePacket ( $p )
_parseVerify ( $key, $data, $sig )

Method Details

__get() public method

public __get ( $name )

_parse() protected method

Parse the message data, verifying the key contents.
protected _parse ( )

_parseCreation() protected method

protected _parseCreation ( $p )

_parseRevokePacket() protected method

protected _parseRevokePacket ( $p )

_parseVerify() protected method

protected _parseVerify ( $key, $data, $sig )

containsEmail() public method

Does this key contain an e-mail address?
public containsEmail ( $email ) : boolean
return boolean True if the key contains the e-mail address.

getEncryptKeys() public method

Return the list of verified encryption subkeys in this key.
public getEncryptKeys ( ) : array
return array An array of objects, with these keys: - created: (DateTime) Creation time. - fingerprint: (string) Key fingerprint. - id: (string) Key ID. - key: (OpenPGP_PublicKeyPacket) Key packet. - revoke: (object) Revocation information. Elements: - created: (DateTime) Creation time. - info: (string) Human readable reason string. - reason: (integer) Revocation reason.

getFingerprints() public method

Return the list of key fingerprints.
public getFingerprints ( ) : array
return array Keys are key IDs; values are fingerprints.

getPublicKey() abstract public method

Return the public key.
abstract public getPublicKey ( ) : Horde_Pgp_Element_PublicKey
return Horde_Pgp_Element_PublicKey Public key.

getSignKeys() public method

Returns the list of signing subkeys within this key.
public getSignKeys ( ) : array
return array An array of objects, with these keys: - created: (DateTime) Creation time. - fingerprint: (string) Key fingerprint. - id: (string) Key ID. - key: (OpenPGP_PublicKeyPacket) Key packet. - revoke: (object) Revocation information. Elements: - created: (DateTime) Creation time. - info: (string) Human readable reason string. - reason: (integer) Revocation reason.

getUserIds() public method

Returns the list of user ID information associated with this key.
public getUserIds ( ) : array
return array An array of objects, with these keys: - comment: (string) Comment. - created: (DateTime) Creation time. - email: (Horde_Mail_Rfc822_Address) E-mail address. - key: (OpenPGP_PublicKeyPacket) Key packet. - revoke: (object) Revocation information. Elements: - created: (DateTime) Creation time. - info: (string) Human readable reason string. - reason: (integer) Revocation reason. - sig: (OpenPGP_SignaturePacket) Signature packet.

Property Details

$_cache protected_oe property

Cached data.
protected array $_cache
return array