pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\Messages\USERAUTH\PK\OK Class Reference
+ Inheritance diagram for fpoirotte\Pssht\Messages\USERAUTH\PK\OK:

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.
 

Detailed Description

SSH_MSG_USERAUTH_PK_OK message (RFC 4252).

Definition at line 17 of file OK.php.

Constructor & Destructor Documentation

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.

Parameters
string$algorithmAlgorithm to use.
string$keyKey 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.

Member Function Documentation

fpoirotte\Pssht\Messages\USERAUTH\PK\OK::getAlgorithm ( )

Get public key algorithm in use.

Return values
stringPublic 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.

Return values
stringKey blob.

Definition at line 86 of file OK.php.

References fpoirotte\Pssht\Messages\USERAUTH\PK\OK\$key.

static fpoirotte\Pssht\Messages\USERAUTH\PK\OK::getMessageId ( )
static

Retrieve the message's identifier.

Return values
intMessage identifier.

Implements fpoirotte\Pssht\Messages\MessageInterface.

Definition at line 49 of file OK.php.

fpoirotte\Pssht\Messages\USERAUTH\PK\OK::serialize ( \fpoirotte\Pssht\Wire\Encoder  $encoder)

Serialize the message.

Parameters
fpoirotte::Pssht::Wire::Encoder$encoderEncoder to use to perform serialization.
Return values
MessageInterfaceReturns this message.

Implements fpoirotte\Pssht\Messages\MessageInterface.

Definition at line 54 of file OK.php.

static fpoirotte\Pssht\Messages\USERAUTH\PK\OK::unserialize ( \fpoirotte\Pssht\Wire\Decoder  $decoder)
static

Unserialize some data into a message.

Parameters
fpoirotte::Pssht::Wire::Decoder$decoderDecoder to use to perform unserialization.
Return values
MessageInterfaceUnserialized message.

Implements fpoirotte\Pssht\Messages\MessageInterface.

Definition at line 61 of file OK.php.


The documentation for this class was generated from the following file: