You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2015/03/03 08:43:04 UTC
[jira] [Created] (SSHD-430) Expose supported built-in ciphers as an
Enum
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)