ProgramixGenericLib v5.0.1

com.programix.util
Class SecurityTools

java.lang.Object
  extended by com.programix.util.SecurityTools

public class SecurityTools
extends Object


Field Summary
static String MD5_ALGORITHM_NAME
           
 
Method Summary
static byte[] digest(String digestAlgorithm, InputStream in)
           
static byte[] digestMD5(File source)
           
static byte[] digestMD5(InputStream in)
           
static String digestMD5ToHexString(File source)
           
static String digestMD5ToHexString(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MD5_ALGORITHM_NAME

public static final String MD5_ALGORITHM_NAME
See Also:
Constant Field Values
Method Detail

digest

public static byte[] digest(String digestAlgorithm,
                            InputStream in)
                     throws IOException
Throws:
IOException

digestMD5

public static byte[] digestMD5(InputStream in)
                        throws IOException
Throws:
IOException

digestMD5

public static byte[] digestMD5(File source)
                        throws IOException
Throws:
IOException

digestMD5ToHexString

public static String digestMD5ToHexString(File source)
                                   throws IOException
Throws:
IOException

digestMD5ToHexString

public static String digestMD5ToHexString(String filename)
                                   throws IOException
Throws:
IOException

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.