Expresso 5-6

com.jcorporate.expresso.core.security
Class StringHash

java.lang.Object
  extended bycom.jcorporate.expresso.core.security.StringHash

public final class StringHash
extends Object

Base class for hashing. Takes a string or byte array and returns a byte array that's the hash of the encryption.

Author:
Michael Rimov

Constructor Summary
StringHash()
           
 
Method Summary
 CryptoManager getCryptoManager()
           
 byte[] produceHash(byte[] inputData)
          Produces a strong cryptographic hash.
 void setCryptoManager(CryptoManager cryptoManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringHash

public StringHash()
           throws ChainedException
Throws:
ChainedException
Method Detail

produceHash

public byte[] produceHash(byte[] inputData)
                   throws ChainedException
Produces a strong cryptographic hash.

Parameters:
inputData - The data to produce the Hash for
Returns:
A byte array representing the hashed input data.
Throws:
ChainedException

setCryptoManager

public void setCryptoManager(CryptoManager cryptoManager)

getCryptoManager

public CryptoManager getCryptoManager()

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.