pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($user, $service, $method) | |
getMethodName () | |
getServiceName () | |
getUserName () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Public Member Functions | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Static Protected Member Functions | |
static | unserializeSub (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$method | |
Authentication method. | |
$service | |
Service to start after authentication. | |
$user | |
User being authenticated. | |
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base::__construct | ( | $user, | |
$service, | |||
$method | |||
) |
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. |
Definition at line 42 of file Base.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$method, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$service, and fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$user.
|
static |
Retrieve the message's identifier.
int | Message identifier. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 59 of file Base.php.
Referenced by fpoirotte\Pssht\Connection\__construct(), fpoirotte\Pssht\Authentication\HostBased\authenticate(), fpoirotte\Pssht\Authentication\PublicKey\authenticate(), and fpoirotte\Pssht\Handlers\SERVICE\REQUEST\handle().
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base::getMethodName | ( | ) |
Authentication method to use.
string | Authentication method to use. |
Definition at line 136 of file Base.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$method.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base::getServiceName | ( | ) |
Return the name of the service to start after authentication.
string | Service to start after authentication. |
Definition at line 125 of file Base.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$service.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base::getUserName | ( | ) |
Return the name of the user requesting authentication.
string | User requesting authentication. |
Definition at line 113 of file Base.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$user.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base::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.
|
staticfinal |
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.
|
staticprotected |
Unserialize the sub-message.
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder to use during unserialization. |
array | Array of unserialized data forming the sub-message. |
(PHPMD.UnusedFormalParameter)