| java.lang.Object | |
| ↳ | com.trilead.ssh2.DHGexParameters |
A DHGexParameters object can be used to specify parameters for
the diffie-hellman group exchange.
Depending on which constructor is used, either the use of a
SSH_MSG_KEX_DH_GEX_REQUEST or SSH_MSG_KEX_DH_GEX_REQUEST_OLD
can be forced.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | MAX_ALLOWED | ||||||||||
| int | MIN_ALLOWED | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| max_group_len | |||||||||||
| min_group_len | |||||||||||
| pref_group_len | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Same as calling
DHGexParameters(1024, 1024, 4096). | |||||||||||
This constructor can be used to force the sending of a
SSH_MSG_KEX_DH_GEX_REQUEST_OLD request. | |||||||||||
This constructor can be used to force the sending of a
SSH_MSG_KEX_DH_GEX_REQUEST request. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the maximum group length.
| |||||||||||
Get the minimum group length.
| |||||||||||
Get the preferred group length.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Same as calling DHGexParameters(1024, 1024, 4096).
This is also the default used by the Connection class.
This constructor can be used to force the sending of a
SSH_MSG_KEX_DH_GEX_REQUEST_OLD request.
Internally, the minimum and maximum group lengths will
be set to zero.
| pref_group_len | Has to be >= 1024 and <= 8192 |
|---|
This constructor can be used to force the sending of a
SSH_MSG_KEX_DH_GEX_REQUEST request.
Note: older OpenSSH servers don't understand this request, in which
case you should use the DHGexParameters(int) constructor.
All values have to be >= 1024 and <= 8192. Furthermore, min_group_len <= pref_group_len <= max_group_len.
| min_group_len | |
|---|---|
| pref_group_len | |
| max_group_len |
Get the maximum group length.
zero if
SSH_MSG_KEX_DH_GEX_REQUEST_OLD should be requested
Get the minimum group length.
zero if
SSH_MSG_KEX_DH_GEX_REQUEST_OLD should be requested
Get the preferred group length.