Goldstein Lyor created SSHD-430:
-----------------------------------
Summary: Expose supported built-in ciphers as an Enum
Key: SSHD-430
URL: https://issues.apache.org/jira/browse/SSHD-430
Project: MINA SSHD
Issue Type: Improvement
Affects Versions: 1.0.0
Reporter: Goldstein Lyor
The available _Cipher_(s) and their respective _NamedFactory_(ies) are exposed
via an _Enum_ - including the _isSupported_ method. This has significant
advantages:
* A central location where all the currently available ciphers are listed - so
that programmers don't need to browse the code.
* Facilitate configuration by code - e.g., read some list of ciphers, and then
easily translate it from string names to their factories counterparts.
* (D)on't-(R)epeat-(Y)ourself - any new cipher is automatically available for
programmers without any code change (assuming they are using the _Enum_). No
need to manually update the code if upgrading to a new version - it will
automatically be made available via the _Enum_
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)