pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($user, $service, $method, $algorithm, $key, $signature=null) | |
getAlgorithm () | |
getKey () | |
getSignature () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
![]() | |
__construct ($user, $service, $method) | |
getMethodName () | |
getServiceName () | |
getUserName () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Protected Member Functions | |
static | unserializeSub (\fpoirotte\Pssht\Wire\Decoder $decoder) |
![]() | |
static | unserializeSub (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$algorithm | |
Public key algorithm in use (eg. "ssh-rsa" or "ssh-dss"). | |
$key | |
Key blob. | |
$signature | |
Signature to prove key ownership. | |
![]() | |
$method | |
Authentication method. | |
$service | |
Service to start after authentication. | |
$user | |
User being authenticated. | |
Additional Inherited Members | |
![]() | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
SSH_MSG_USERAUTH_REQUEST message (RFC 4252) for the "publickey" method.
Definition at line 18 of file PublicKey.php.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey::__construct | ( | $user, | |
$service, | |||
$method, | |||
$algorithm, | |||
$key, | |||
$signature = null |
|||
) |
Construct a new user authentication request.
string | $user | User to authenticate as. |
string | $service | Service to run after authentication. |
string | $method | Authentication method to use. |
string | $algorithm | Public key algorithm to use. |
string | $key | Key blob. |
string | $signature | (optional) Signature proving ownership of the key. This parameter MUST be omitted during the first phase of authentication and MUST be given during the second phase. |
Definition at line 45 of file PublicKey.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey\$algorithm, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey\$key, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$method, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$service, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey\$signature, and fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$user.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey::getAlgorithm | ( | ) |
Get the public key algorithm in use.
string | Public key algorithm in use. |
Definition at line 107 of file PublicKey.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey\$algorithm.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey::getKey | ( | ) |
Get the key blob.
string | Key blob. |
Definition at line 118 of file PublicKey.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey\$key.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey::getSignature | ( | ) |
Get the signature proving key ownership.
string | Signature proving key ownership. |
null | No signature data was available. |
Definition at line 137 of file PublicKey.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey\$signature.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey::serialize | ( | \fpoirotte\Pssht\Wire\Encoder | $encoder | ) |
Serialize the message.
fpoirotte::Pssht::Wire::Encoder | $encoder | Encoder to use to perform serialization. |
MessageInterface | Returns this message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 65 of file PublicKey.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey\$algorithm, and fpoirotte\Pssht\Messages\USERAUTH\REQUEST\PublicKey\$signature.