Documentation

Horde_Crypt_Pgp_Keyserver
in package

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

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2002-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

since
2.4.0

Table of Contents

$_http  : Horde_Http_Client
HTTP object.
$_keyserver  : string
Keyserver hostname.
$_pgp  : Horde_Crypt_Pgp
PGP object.
__construct()  : mixed
Constructor.
get()  : string
Returns PGP public key data retrieved from a public keyserver.
getKeyId()  : string
Returns the first matching key ID for an email address from a public keyserver.
put()  : mixed
Sends a PGP public key to a public keyserver.
_createUrl()  : Horde_Url
Create the URL for the keyserver.

Properties

$_http

HTTP object.

protected Horde_Http_Client $_http

$_keyserver

Keyserver hostname.

protected string $_keyserver

Methods

__construct()

Constructor.

public __construct(Horde_Crypt_Pgp $pgp[, array<string|int, mixed> $params = array() ]) : mixed
Parameters
$pgp : Horde_Crypt_Pgp

A Horde_Crypt_Pgp object.

$params : array<string|int, mixed> = array()

Optional parameters:

  - http: (Horde_Http_Client) The HTTP client object to use.
  - keyserver: (string) The public PGP keyserver to use.
  - port: (integer) The public PGP keyserver port.
Return values
mixed

get()

Returns PGP public key data retrieved from a public keyserver.

public get(string $keyid) : string
Parameters
$keyid : string

The key ID of the PGP key.

Tags
throws
Horde_Crypt_Exception
Return values
string

The PGP public key.

getKeyId()

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

public getKeyId(string $address) : string
Parameters
$address : string

The email address of the PGP key.

Tags
throws
Horde_Crypt_Exception
Return values
string

The PGP key ID.

put()

Sends a PGP public key to a public keyserver.

public put(string $pubkey) : mixed
Parameters
$pubkey : string

The PGP public key

Tags
throws
Horde_Crypt_Exception
Return values
mixed

_createUrl()

Create the URL for the keyserver.

protected _createUrl(string $uri[, array<string|int, mixed> $params = array() ]) : Horde_Url
Parameters
$uri : string

Action URI.

$params : array<string|int, mixed> = array()

List of parameters to add to URL.

Return values
Horde_Url

Keyserver URL.

Search results