| java.lang.Object ch.ethz.ssh2.DHGexParameters
DHGexParameters | public class DHGexParameters (Code) | | 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.
See Also: Connection.setDHGexParameters(DHGexParameters) author: Christian Plattner, plattner@inf.ethz.ch version: $Id: DHGexParameters.java,v 1.3 2006/09/20 12:51:37 cplattne Exp $ |
Constructor Summary | |
public | DHGexParameters() Same as calling
DHGexParameters.DHGexParameters(int,int,int) DHGexParameters(1024, 1024, 4096) . | public | DHGexParameters(int pref_group_len) This constructor can be used to force the sending of a
SSH_MSG_KEX_DH_GEX_REQUEST_OLD request. | public | 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.
Note: older OpenSSH servers don't understand this request, in which
case you should use the
DHGexParameters.DHGexParameters(int) constructor.
All values have to be >= 1024 and <= 8192. |
DHGexParameters | public DHGexParameters(int pref_group_len)(Code) | | 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.
Parameters: pref_group_len - has to be >= 1024 and <= 8192 |
DHGexParameters | public DHGexParameters(int min_group_len, int pref_group_len, int max_group_len)(Code) | | 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.DHGexParameters(int) constructor.
All values have to be >= 1024 and <= 8192. Furthermore,
min_group_len <= pref_group_len <= max_group_len.
Parameters: min_group_len - Parameters: pref_group_len - Parameters: max_group_len - |
getMax_group_len | public int getMax_group_len()(Code) | | Get the maximum group length.
the maximum group length, may be zero ifSSH_MSG_KEX_DH_GEX_REQUEST_OLD should be requested |
getMin_group_len | public int getMin_group_len()(Code) | | Get the minimum group length.
minimum group length, may be zero ifSSH_MSG_KEX_DH_GEX_REQUEST_OLD should be requested |
getPref_group_len | public int getPref_group_len()(Code) | | Get the preferred group length.
the preferred group length |
|
|