org.apache.geronimo.system.configuration
Class ConfigurationStoreUtil

java.lang.Object
  extended by org.apache.geronimo.system.configuration.ConfigurationStoreUtil

public class ConfigurationStoreUtil
extends Object

Utility methods for dealing with checksums (hashes) of files in the configuration store.


Nested Class Summary
static class ConfigurationStoreUtil.ChecksumOutputStream
           
 
Constructor Summary
ConfigurationStoreUtil()
           
 
Method Summary
static String getActualChecksum(File file)
           
static String getActualChecksum(File file, String algorithm)
           
static String getExpectedChecksum(File file)
           
static boolean verifyChecksum(File file)
           
static void writeChecksumFor(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationStoreUtil

public ConfigurationStoreUtil()
Method Detail

writeChecksumFor

public static void writeChecksumFor(File file)
                             throws IOException
Throws:
IOException

verifyChecksum

public static boolean verifyChecksum(File file)

getExpectedChecksum

public static String getExpectedChecksum(File file)

getActualChecksum

public static String getActualChecksum(File file)

getActualChecksum

public static String getActualChecksum(File file,
                                       String algorithm)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.