Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jini.tool
Class ComputeDigest

    java.lang.Object
      com.sun.jini.tool.ComputeDigest

public class ComputeDigest
extends Object

Prints the message digest for the contents of a URL. This utility is run from the command line.

An example command line usage is:

>      java -cp install_dir/lib/tools.jar
>           com.sun.jini.tool.ComputeDigest
>           install_dir/lib/reggie.jar
>           sha

where install_dir is the directory where the starter kit is installed. This command prints out the message digest for the `reggie.jar` JAR file, using the `sha` algorithm.

Since:
  2.0

Method Summary
`static void` | `main(String[] args)` Prints the message digest for the contents of a URL.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### main

    public static void main(String[] args)

  Prints the message digest for the contents of a URL. The command line arguments are:

       url [ algorithm ]

  The first argument specifies the URL, which is parsed in the context of a `file:` URL. The second argument, if present, specifies the message digest algorithm, which defaults to `md5`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved