[
https://issues.apache.org/jira/browse/SSHD-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17377032#comment-17377032
]
Lyor Goldstein commented on SSHD-1189:
--------------------------------------
{quote}I have this property in the property file (all are deprecated but some
legacy clients use it)
SSHKeyExchangeAlgList=diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,rsa2048-sha256,rsa1024-sha1
Now how will we map this algorithm in the String to type KeyExchangeFactory, is
there any utility function which can help here?
{quote}
{{BuiltinDHFactories#parseDHFactoriesList}} (and also for the ciphers, MACs,
etc,). Note that specifically for {{KeyExchangeFactory}} the result is not a
{{KeyExchangeFactory}} but rather a {{DHFactory}} from which
{{KeyExchangeFactory}} can be instantiated. This is due to the fact that unlike
ciphers or MACs, the implementations for client and server are +different+ -
see {{newFactory}} factory methods in {{DHGClient, DHGEXClient, DHGServer,
DHGEXServer}} classes. Note that each one of them supports a +different+ subset
of KEX algorithms as indicated - see the respective {{ClientBuilder#DH2KEX}}
and {{ServerBuillder#DH2KEX}} that you can use in order to convert a parsed
{{DHFactory}} value to its respective {{KeyExchangeFactory}} instance
> How to fetch default KEX, ciphers and mac
> -----------------------------------------
>
> Key: SSHD-1189
> URL: https://issues.apache.org/jira/browse/SSHD-1189
> Project: MINA SSHD
> Issue Type: Question
> Reporter: Susmit Sarkar
> Priority: Blocker
> Attachments: 47C4C2C1-97E3-4934-B862-2E49C75CAB69.png
>
>
> Hi Team,
> In 2.7.0 we see
> ConfigFileReaderSupport.DEFAULT_KEX_ALGORITHMS;
> ConfigFileReaderSupport.DEFAULT_CIPHERS;
> ConfigFileReaderSupport.DEFAULT_MACS;
>
> Are not present, how can we get the list now?
>
> Thanks,
> Susmit
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]