pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($algorithm, $key) | |
getAlgorithm () | |
getKey () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Public Member Functions | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$algorithm | |
Public key algorithm in use (eg. "ssh-rsa" or "ssh-dss"). | |
$key | |
Key blob. | |
fpoirotte\Pssht\Messages\USERAUTH\PK\OK::__construct | ( | $algorithm, | |
$key | |||
) |
Construct a new SSH_MSG_USERAUTH_PK_OK message, indicating partial success of a public key authentication.
string | $algorithm | Algorithm to use. |
string | $key | Key blob. |
Definition at line 36 of file OK.php.
References fpoirotte\Pssht\Messages\USERAUTH\PK\OK\$algorithm, and fpoirotte\Pssht\Messages\USERAUTH\PK\OK\$key.
fpoirotte\Pssht\Messages\USERAUTH\PK\OK::getAlgorithm | ( | ) |
Get public key algorithm in use.
string | Public key algorithm in use. |
Definition at line 75 of file OK.php.
References fpoirotte\Pssht\Messages\USERAUTH\PK\OK\$algorithm.
fpoirotte\Pssht\Messages\USERAUTH\PK\OK::getKey | ( | ) |
Get the key blob.
string | Key blob. |
Definition at line 86 of file OK.php.
References fpoirotte\Pssht\Messages\USERAUTH\PK\OK\$key.
|
static |
Retrieve the message's identifier.
int | Message identifier. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
fpoirotte\Pssht\Messages\USERAUTH\PK\OK::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.
|
static |
Unserialize some data into a message.
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder to use to perform unserialization. |
MessageInterface | Unserialized message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.