PHP Класс Horde_Pgp_Keyserver, horde

Connects to a public key server via HKP (Horrowitz Keyserver Protocol). http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00
Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_http Horde_Http_Client HTTP object.
$_keyserver string Keyserver hostname.

Открытые методы

Метод Описание
__construct ( array $params = [] ) Constructor.
get ( string $id ) : Horde_Pgp_Element_PublicKey Returns PGP public key data retrieved from a public keyserver.
getKeyByEmail ( string $address ) : Horde_Pgp_Element_PublicKey Returns the first matching key for an email address from a public keyserver.
put ( mixed $key ) Sends a PGP public key to a public keyserver.

Защищенные методы

Метод Описание
_createUrl ( string $uri, array $params = [] ) : Horde_Url Create the URL for the keyserver.
_getKeyIdString ( $keyid )

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( array $params = [] )
$params array Optional parameters:
  - http: (Horde_Http_Client) The HTTP client object to use.
  - keyserver: (string) The public PGP keyserver to use.

_createUrl() защищенный Метод

Create the URL for the keyserver.
protected _createUrl ( string $uri, array $params = [] ) : Horde_Url
$uri string Action URI.
$params array List of parameters to add to URL.
Результат Horde_Url Keyserver URL.

_getKeyIdString() защищенный Метод

protected _getKeyIdString ( $keyid )

get() публичный Метод

Returns PGP public key data retrieved from a public keyserver.
public get ( string $id ) : Horde_Pgp_Element_PublicKey
$id string The ID of the PGP key.
Результат Horde_Pgp_Element_PublicKey The PGP public key.

getKeyByEmail() публичный Метод

Returns the first matching key for an email address from a public keyserver.
public getKeyByEmail ( string $address ) : Horde_Pgp_Element_PublicKey
$address string The email address to search for.
Результат Horde_Pgp_Element_PublicKey The PGP public key.

put() публичный Метод

Sends a PGP public key to a public keyserver.
public put ( mixed $key )
$key mixed The PGP public key.

Описание свойств

$_http защищенное свойство

HTTP object.
protected Horde_Http_Client $_http
Результат Horde_Http_Client

$_keyserver защищенное свойство

Keyserver hostname.
protected string $_keyserver
Результат string