Pure-PHP ssh-agent client identity object
Instantiation should only be performed by \phpseclib3\System\SSH\Agent class. This could be thought of as implementing an interface that phpseclib3\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.
author | Jim Wigginton terrafrost@php.net |
---|---|
internal | |
package | Default |
__construct(resource $fsock)
resource
getCurve(): string|array
Returns a string if it's a named curve, an array if not
string|array
getPublicKey(string $type = 'PKCS8'): mixed
Wrapper for $this->key->getPublicKey()
string
optional
mixed
readBytes(integer $length)
Throws |
|
---|
integer
sign(string $message): string
See "2.6.2 Protocol 2 private key signature request"
Throws |
|
---|
string
string
toString(string $type,array $options = array()): string
string
array
optional
string
withHash(string $hash)
string
withPadding(string $padding)
Only PKCS1 padding is supported
string
withPassword(string|boolean $password = false): \phpseclib3\System\SSH\Agent\never
string|boolean
\phpseclib3\System\SSH\Agent\never
withPublicKey(\phpseclib3\Crypt\Common\PublicKey $key)
Called by \phpseclib3\System\SSH\Agent::requestIdentities()
withPublicKeyBlob(string $key_blob)
Called by \phpseclib3\System\SSH\Agent::requestIdentities(). The key blob could be extracted from $this->key but this saves a small amount of computation.
string
withSignatureFormat(string $format)
Valid values are: ASN1, SSH2, Raw
string
SSH_AGENT_RSA2_256
SSH_AGENT_RSA2_512
key :\phpseclib3\Crypt\Common\PublicKey
key_blob :string
var | |
---|---|
see |
string
fsock :resource
var | |
---|---|
see |
resource
flags :integer
var | |
---|---|
see |
integer
curveAliases :array
var |
---|
array