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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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