Regain 2.1.0-STABLE API

net.sf.regain.search
Class NoncesManager.NonceHelper

java.lang.Object
  extended by net.sf.regain.search.NoncesManager.NonceHelper
Enclosing class:
NoncesManager

private static class NoncesManager.NonceHelper
extends Object


Field Summary
private static String HASH_ALGORITHM
           
 
Constructor Summary
private NoncesManager.NonceHelper()
           
 
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
 

Field Detail

HASH_ALGORITHM

private static String HASH_ALGORITHM
Constructor Detail

NoncesManager.NonceHelper

private NoncesManager.NonceHelper()
Method Detail

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 API

Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info