net.sf.regain.search
Class NoncesManager.NonceHelper
java.lang.Object
  
net.sf.regain.search.NoncesManager.NonceHelper
- Enclosing class:
 - NoncesManager
 
private static class NoncesManager.NonceHelper
- extends Object
 
 
 
| 
Method Summary | 
static String | 
_hash(String input,
      String algorithmName)
 
          Create an MD5 Hash of an input String. | 
static String | 
getSystemSpecificHashValue()
 
          This function generates a hash that should be
 a) different for each machine/environment it runs int
 b) same for each time the function is called, and if possible also between program invocations | 
static String | 
hash(String input,
     String algorithmName)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
HASH_ALGORITHM
private static String HASH_ALGORITHM
NoncesManager.NonceHelper
private NoncesManager.NonceHelper()
hash
public static String hash(String input,
                          String algorithmName)
 
_hash
public static String _hash(String input,
                           String algorithmName)
                    throws NoSuchAlgorithmException
- Create an MD5 Hash of an input String.
 Uses the MD5 Algorithm of MessageDigest.
- Parameters:
 input - String to Hash
- Returns:
 - Hash (Hex-Encoded)
 - Throws:
 NoSuchAlgorithmException - Invalid algorithmName.
 
 
getSystemSpecificHashValue
public static String getSystemSpecificHashValue()
- This function generates a hash that should be
 a) different for each machine/environment it runs int
 b) same for each time the function is called, and if possible also between program invocations
- Returns:
 - Hash-Value
 
 
 
Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info