Class

AlgorithmNegotiator

Extends:

Includes:

The AlgorithmNegotiator is used for negotiating the algorithms to be employed for a specific SSH session.

Constants
Algorithms
Public Methods
negotiate Negotiate the supported algorithms with the server. If a compromise cannot be reached between what the client wants and what the server can provide, this will fail.
new Create a new AlgorithmNegotiator instance, using the given logger, set of default algorithms, and buffer factory.
Private Methods
first_matching_element looks for the first element in list1 that is also in list2
prepare_preferred_algorithm Adds the algorithms of the specified type from options to the @algorithms hash. Also verifies that the specified algorithms are supported.
prepare_preferred_algorithms Builds the @algorithms hash from the values specified in the options hash.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.