pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($message, $language= '') | |
getLanguage () | |
getMessage () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Public Member Functions | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$language | |
Language the banner is written into, in RFC 3066 format. | |
$message | |
Banner to display. | |
SSH_MSG_USERAUTH_BANNER message (RFC 4252).
Definition at line 17 of file BANNER.php.
fpoirotte\Pssht\Messages\USERAUTH\BANNER::__construct | ( | $message, | |
$language = '' |
|||
) |
Construct a new SSH_MSG_USERAUTH_BANNER message.
string | $message | Banner to display. |
string | $language | (optional) Language for the banner, in RFC 3066 format. If omitted, the banner is assumed to be language-neutral. |
Definition at line 36 of file BANNER.php.
References fpoirotte\Pssht\Messages\USERAUTH\BANNER\$language, and fpoirotte\Pssht\Messages\USERAUTH\BANNER\$message.
fpoirotte\Pssht\Messages\USERAUTH\BANNER::getLanguage | ( | ) |
Get the language for the banner.
string | Language for the banner, in RFC 3066 format. |
Definition at line 91 of file BANNER.php.
References fpoirotte\Pssht\Messages\USERAUTH\BANNER\$language.
fpoirotte\Pssht\Messages\USERAUTH\BANNER::getMessage | ( | ) |
Get the banner.
string | Banner to dislay. |
Definition at line 75 of file BANNER.php.
References fpoirotte\Pssht\Messages\USERAUTH\BANNER\$message.
|
static |
Retrieve the message's identifier.
int | Message identifier. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 49 of file BANNER.php.
fpoirotte\Pssht\Messages\USERAUTH\BANNER::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 54 of file BANNER.php.
|
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.
Definition at line 61 of file BANNER.php.