PHP Class 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.
ファイルを表示
Open project: phpseclib/phpseclib
Class Usage Examples
Public Properties
Public Methods
Method Details
__construct()
public method
public __construct ( resource $fsock ) : Identity |
$fsock |
resource |
|
return |
Identity |
|
getPublicKey()
public method
Wrapper for $this->key->getPublicKey()
ssh-agent only supports signatures with sha1 hashes but to maintain BC with RSA.php this function exists
setPublicKey()
public method
Called by \phpseclib\System\SSH\Agent::requestIdentities()
public setPublicKey ( phpseclib\Crypt\RSA $key ) |
$key |
phpseclib\Crypt\RSA |
|
setPublicKeyBlob()
public method
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"
Property Details
$fsock public_oe property
public resource $fsock |
return |
resource |
|
public RSA,phpseclib\Crypt $key |
return |
phpseclib\Crypt\RSA |
|
$key_blob public_oe property
public string $key_blob |
return |
string |
|