|
Ganymed SSH-2 for Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.ethz.ssh2.DHGexParameters
public class 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.
Connection.setDHGexParameters(DHGexParameters)| Constructor Summary | |
|---|---|
DHGexParameters()
Same as calling DHGexParameters(1024, 1024, 4096). |
|
DHGexParameters(int pref_group_len)
This constructor can be used to force the sending of a SSH_MSG_KEX_DH_GEX_REQUEST_OLD request. |
|
DHGexParameters(int min_group_len,
int pref_group_len,
int max_group_len)
This constructor can be used to force the sending of a SSH_MSG_KEX_DH_GEX_REQUEST request. |
|
| Method Summary | |
|---|---|
int |
getMax_group_len()
Get the maximum group length. |
int |
getMin_group_len()
Get the minimum group length. |
int |
getPref_group_len()
Get the preferred group length. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DHGexParameters()
DHGexParameters(1024, 1024, 4096).
This is also the default used by the Connection class.
public DHGexParameters(int pref_group_len)
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
public DHGexParameters(int min_group_len,
int pref_group_len,
int max_group_len)
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 - | Method Detail |
|---|
public int getMax_group_len()
zero if
SSH_MSG_KEX_DH_GEX_REQUEST_OLD should be requestedpublic int getMin_group_len()
zero if
SSH_MSG_KEX_DH_GEX_REQUEST_OLD should be requestedpublic int getPref_group_len()
|
Ganymed SSH-2 for Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||