Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.security
Class MD5

    java.lang.Object
      org.hyperic.util.security.MD5

    public class MD5

extends java.lang.Object

MD5 helper methods.

Constructor Summary
`MD5()`

Method Summary
`void` | `add(byte[] input)`
`void` | `add(java.io.File file)`
`void` | `add(java.io.InputStream is)`
`void` | `add(java.lang.String input)`
`byte[]` | `getDigest()`
`static byte[]` | `getDigest(java.io.InputStream is)`
`static byte[]` | `getDigest(java.lang.String input)`
`java.lang.String` | `getDigestString()`
`java.lang.String` | `getDigestString(byte[] bytes)`
`static java.lang.String` | `getDigestString(java.io.File file)`
`static java.lang.String` | `getDigestString(java.io.InputStream is)`
`static java.lang.String` | `getEncodedDigest(java.lang.String input)`
`static MD5` | `getJarDigest(java.lang.String file)`
`static java.lang.String` | `getJarDigestString(java.lang.String file)` Returns an MD5 Digest string calculated from file entries within the jar file rather than the jar file itself.
`java.security.MessageDigest` | `getMessageDigest()`
`static void` | `main(java.lang.String[] args)`

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

Constructor Detail

### MD5

    public MD5()

Method Detail

### add

    public void add(java.io.InputStream is)
             throws java.io.IOException

  Throws:
    `java.io.IOException`

### add

    public void add(java.io.File file)
             throws java.io.IOException

  Throws:
    `java.io.IOException`

### add

    public void add(java.lang.String input)

### add

    public void add(byte[] input)

### getDigest

    public byte[] getDigest()
                     throws java.io.IOException

  Throws:
    `java.io.IOException`

### getDigestString

    public java.lang.String getDigestString(byte[] bytes)

### getDigestString

    public java.lang.String getDigestString()
                                     throws java.io.IOException

  Throws:
    `java.io.IOException`

### getDigest

    public static byte[] getDigest(java.io.InputStream is)
                            throws java.io.IOException

  Throws:
    `java.io.IOException`

### getDigest

    public static byte[] getDigest(java.lang.String input)
                            throws java.io.IOException

  Throws:
    `java.io.IOException`

### getEncodedDigest

    public static java.lang.String getEncodedDigest(java.lang.String input)
                                             throws java.io.IOException

  Throws:
    `java.io.IOException`

### getDigestString

    public static java.lang.String getDigestString(java.io.InputStream is)
                                            throws java.io.IOException

  Throws:
    `java.io.IOException`

### getDigestString

    public static java.lang.String getDigestString(java.io.File file)
                                            throws java.io.IOException,
                                                   java.io.FileNotFoundException

  Throws:
    `java.io.IOException`
    `java.io.FileNotFoundException`

### getJarDigest

    public static MD5 getJarDigest(java.lang.String file)
                            throws java.io.IOException

  Throws:
    `java.io.IOException`

### getMessageDigest

    public java.security.MessageDigest getMessageDigest()

### getJarDigestString

    public static java.lang.String getJarDigestString(java.lang.String file)
                                               throws java.io.IOException

  Returns an MD5 Digest string calculated from file entries within the jar file rather than the jar file itself.

  Throws:
    `java.io.IOException`

### main

    public static void main(java.lang.String[] args)

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.