PHP Класс Horde_Crypt_Pgp_Keyserver, horde

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

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

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

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

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

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

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

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

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

Constructor.
public __construct ( Horde_Crypt_Pgp $pgp, array $params = [] )
$pgp Horde_Crypt_Pgp A Horde_Crypt_Pgp object.
$params 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.

_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.

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

Returns PGP public key data retrieved from a public keyserver.
public get ( string $keyid ) : string
$keyid string The key ID of the PGP key.
Результат 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
$address string The email address of the PGP key.
Результат string The PGP key ID.

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

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

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

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

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

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

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

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

PGP object.
protected Horde_Crypt_Pgp $_pgp
Результат Horde_Crypt_Pgp