You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2016/05/14 00:28:12 UTC
[jira] [Created] (CODEC-210) Add DigestUtils.getDigest(String,
MessageDigest)
Gary Gregory created CODEC-210:
----------------------------------
Summary: Add DigestUtils.getDigest(String, MessageDigest)
Key: CODEC-210
URL: https://issues.apache.org/jira/browse/CODEC-210
Project: Commons Codec
Issue Type: New Feature
Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Maven home: E:\Java\apache-maven-3.3.9\bin\..
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_79\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Reporter: Gary Gregory
Assignee: Gary Gregory
Fix For: 1.11
Add DigestUtils.getDigest(String algo, MessageDigest):
{code:java}
/**
* Returns a <code>MessageDigest</code> for the given <code>algorithm</code> or a default if there is a problem getting the algorithm.
*
* @param algorithm
* the name of the algorithm requested. See <a
* href="http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#AppA"
* >Appendix A in the Java Cryptography Architecture Reference Guide</a> for information about standard
* algorithm names.
* @param defaultMessageDigest The default MessageDigest.
* @return A digest instance.
* @see MessageDigest#getInstance(String)
* @throws IllegalArgumentException
* when a {@link NoSuchAlgorithmException} is caught.
* @since 1.11
*/
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)