com.croftsoft.core.security
Class DigestLib

java.lang.Object
  extended by com.croftsoft.core.security.DigestLib

public final class DigestLib
extends Object

Static method library for creating message digests of byte streams.

Since:
1998-10-04
Version:
2003-03-27
Author:
David Wallace Croft

Method Summary
static byte[] digest(File file)
           
static byte[] digest(File file, String algorithm)
           
static byte[] digest(InputStream inputStream, String algorithm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

digest

public static byte[] digest(InputStream inputStream,
                            String algorithm)
                     throws IOException,
                            NoSuchAlgorithmException
Throws:
IOException
NoSuchAlgorithmException

digest

public static byte[] digest(File file,
                            String algorithm)
                     throws IOException,
                            NoSuchAlgorithmException
Throws:
IOException
NoSuchAlgorithmException

digest

public static byte[] digest(File file)
                     throws IOException,
                            NoSuchAlgorithmException
Throws:
IOException
NoSuchAlgorithmException

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)