This commit message was mistakenly leftover from the previous commit.
This commit merely changes "sha1" to "SHA-1" in response to Mark's
request for consistancy.
Fred
[EMAIL PROTECTED] wrote:
Author: foliver
Date: Tue Mar 11 10:55:57 2008
New Revision: 636036
URL: http://svn.apache.org/viewvc?rev=636036&view=rev
Log:
Fixes to RIVER-253, RIVER-252, RIVER-233, RIVER-231, and RIVER-209.
- minor clarifications in ComputeHttpmdCodebase and ComputeDigest with
respect to algorithms used.
- avoid NullPointerExceptions in these classes when resource bundles
cannot be found.
- fix NullPointerException in SslConnection.checkConnectPermission().
Modified:
incubator/river/jtsk/trunk/src/com/sun/jini/tool/ComputeDigest.java
Modified: incubator/river/jtsk/trunk/src/com/sun/jini/tool/ComputeDigest.java
URL:
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/src/com/sun/jini/tool/ComputeDigest.java?rev=636036&r1=636035&r2=636036&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/src/com/sun/jini/tool/ComputeDigest.java
(original)
+++ incubator/river/jtsk/trunk/src/com/sun/jini/tool/ComputeDigest.java Tue Mar
11 10:55:57 2008
@@ -36,13 +36,13 @@
* <pre>
* java -jar <var><b>install_dir</b></var>/lib/computedigest.jar
* <var><b>install_dir</b></var>/lib/reggie.jar
- * sha1
+ * SHA-1
* </pre>
* </blockquote>
*
* where <var><b>install_dir</b></var> is the directory where the Apache River
release
* is installed. This command prints out the message digest for the
- * <code>reggie.jar</code> JAR file, using the <code>sha1</code> algorithm.
+ * <code>reggie.jar</code> JAR file, using the <code>SHA-1</code> algorithm.
*
* @author Sun Microsystems, Inc.
* @since 2.0
@@ -62,14 +62,14 @@
* The first argument specifies the URL, which is parsed in the context
* of a <code>file:</code> URL. The second argument, if present,
* specifies the message digest algorithm, which defaults to
- * <code>sha1</code>.
+ * <code>SHA-1</code>.
*/
public static void main(String[] args) {
if (args.length < 1 || args.length > 2) {
print("computedigest.usage", null);
System.exit(1);
}
- String algorithm = args.length > 1 ? args[1] : "sha1";
+ String algorithm = args.length > 1 ? args[1] : "SHA-1";
try {
URL url = new URL(new URL("file:"), args[0]);
System.out.println(HttpmdUtil.computeDigest(url, algorithm));