PHP Класс phpseclib\System\SSH\Agent\Identity
Instantiation should only be performed by \phpseclib\System\SSH\Agent class.
This could be thought of as implementing an interface that phpseclib\Crypt\RSA
implements. ie. maybe a Net_SSH_Auth_PublicKey interface or something.
The methods in this interface would be getPublicKey and sign since those are the
methods phpseclib looks for to perform public key authentication.
Показать файл
Открыть проект
Примеры использования класса
Открытые свойства
Открытые методы
Описание методов
__construct()
публичный Метод
public __construct ( resource $fsock ) : Identity |
$fsock |
resource |
|
Результат |
Identity |
|
getPublicKey()
публичный Метод
Wrapper for $this->key->getPublicKey()
setHash()
публичный Метод
ssh-agent only supports signatures with sha1 hashes but to maintain BC with RSA.php this function exists
setPublicKey()
публичный Метод
Called by \phpseclib\System\SSH\Agent::requestIdentities()
public setPublicKey ( phpseclib\Crypt\RSA $key ) |
$key |
phpseclib\Crypt\RSA |
|
setPublicKeyBlob()
публичный Метод
Called by \phpseclib\System\SSH\Agent::requestIdentities(). The key blob could be extracted from $this->key
but this saves a small amount of computation.
See "2.6.2 Protocol 2 private key signature request"
Описание свойств
$fsock публичное свойство
public resource $fsock |
Результат |
resource |
|
public RSA,phpseclib\Crypt $key |
Результат |
phpseclib\Crypt\RSA |
|
$key_blob публичное свойство
public string $key_blob |
Результат |
string |
|