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_ |
looks for the first element in list1 that is also in list2 |
| prepare_ |
Adds the algorithms of the specified type from options to the @algorithms hash. Also verifies that the specified algorithms are supported. |
| prepare_ |
Builds the @algorithms hash from the values specified in the options hash. |
<code/>and<pre/>for code samples.