pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($user, $service, $method, $password, $newPassword=null) | |
getNewPassword () | |
getPassword () | |
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 | |
$newPassword | |
New password. | |
$password | |
Password for the given login. | |
![]() | |
$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 "password" method.
Definition at line 18 of file Password.php.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Password::__construct | ( | $user, | |
$service, | |||
$method, | |||
$password, | |||
$newPassword = 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 | $password | Password for the given user. |
string | $newPassword | (optional) Set the new password for the user to this value after authentication. |
Definition at line 42 of file Password.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$method, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Password\$newPassword, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Password\$password, fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$service, and fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Base\$user.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Password::getNewPassword | ( | ) |
Set the user's password to this new password after authentication success.
string | New password for the user. |
Definition at line 96 of file Password.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Password\$newPassword.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Password::getPassword | ( | ) |
Get the password given for authentication purposes.
string | Password associated with the given user. |
Definition at line 84 of file Password.php.
References fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Password\$password.
fpoirotte\Pssht\Messages\USERAUTH\REQUEST\Password::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 57 of file Password.php.