\Horde_Pgp_Keyserver

Provides methods to connect to a PGP keyserver.

Connects to a public key server via HKP (Horrowitz Keyserver Protocol). http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00

Summary

Methods
Properties
Constants
__construct()
get()
put()
getKeyByEmail()
No public properties found
DEFAULT_KEYSERVER
_createUrl()
_getKeyIdString()
$_http
$_keyserver
N/A
No private methods found
No private properties found
N/A

Constants

DEFAULT_KEYSERVER

DEFAULT_KEYSERVER

Default keyserver.

Properties

$_http

$_http : \Horde_Http_Client

HTTP object.

Type

\Horde_Http_Client

$_keyserver

$_keyserver : string

Keyserver hostname.

Type

string

Methods

__construct()

__construct(array  $params = array()) 

Constructor.

Parameters

array $params

Optional parameters:

  - http: (Horde_Http_Client) The HTTP client object to use.
  - keyserver: (string) The public PGP keyserver to use.

get()

get(string  $id) : \Horde_Pgp_Element_PublicKey

Returns PGP public key data retrieved from a public keyserver.

Parameters

string $id

The ID of the PGP key.

Throws

\Horde_Pgp_Exception

Returns

\Horde_Pgp_Element_PublicKey

The PGP public key.

put()

put(mixed  $key) 

Sends a PGP public key to a public keyserver.

Parameters

mixed $key

The PGP public key.

Throws

\Horde_Pgp_Exception

getKeyByEmail()

getKeyByEmail(string  $address) : \Horde_Pgp_Element_PublicKey

Returns the first matching key for an email address from a public keyserver.

Parameters

string $address

The email address to search for.

Throws

\Horde_Pgp_Exception

Returns

\Horde_Pgp_Element_PublicKey

The PGP public key.

_createUrl()

_createUrl(string  $uri, array  $params = array()) : \Horde_Url

Create the URL for the keyserver.

Parameters

string $uri

Action URI.

array $params

List of parameters to add to URL.

Returns

\Horde_Url —

Keyserver URL.

_getKeyIdString()

_getKeyIdString(  $keyid) 

Parameters

$keyid