[
https://issues.apache.org/jira/browse/CODEC-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15290000#comment-15290000
]
Sebb commented on CODEC-195:
----------------------------
As I keep writing, that only works for pre-defined algorithm names.
I don't think it is helpful to have one API for pre-defined algos and another
for the rest.
Especially since the 'rest' may include new standard algos not available when
the code was written.
That is confusing for the user and is more code to maintain.
I am working on a fluent interface which I intend to commit shortly.
This can use the MessageDigestAlgorithms constants, but is equally usable with
other algo names.
Same API for both, and it looks very similar to your example 'OO way'.
> Support SHA-224 in DigestUtils on Java 8
> ----------------------------------------
>
> Key: CODEC-195
> URL: https://issues.apache.org/jira/browse/CODEC-195
> Project: Commons Codec
> Issue Type: New Feature
> Affects Versions: 1.11
> Environment: Apache Maven 3.2.3
> (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00)
> Maven home: C:\Java\apache-maven-3.2.3
> Java version: 1.7.0_71, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_71\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> Reporter: Gary Gregory
> Fix For: 1.11
>
>
> Support SHA-224 in DigestUtils on Java 8.
> The new APIs throw IllegalArgumentException on Java versions prior to Java 8.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)