Class Hash


  • public class Hash
    extends java.lang.Object
    Version:
    $Revision: 1.13 $
    Author:
    $author$
    • Constructor Summary

      Constructors 
      Constructor Description
      Hash​(java.lang.String algorithm)
      Creates a new Hash object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] doFinal()  
      void putBigInteger​(java.math.BigInteger bi)  
      void putByte​(byte b)  
      void putBytes​(byte[] data)  
      void putInt​(int i)  
      void putString​(java.lang.String str)  
      void reset()  
      static byte[] simple​(byte[] data, java.lang.String algorithm)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Hash

        public Hash​(java.lang.String algorithm)
             throws java.security.NoSuchAlgorithmException
        Creates a new Hash object.
        Parameters:
        algorithm -
        Throws:
        java.security.NoSuchAlgorithmException
    • Method Detail

      • putBigInteger

        public void putBigInteger​(java.math.BigInteger bi)
        Parameters:
        bi -
      • putByte

        public void putByte​(byte b)
        Parameters:
        b -
      • putBytes

        public void putBytes​(byte[] data)
        Parameters:
        data -
      • putInt

        public void putInt​(int i)
        Parameters:
        i -
      • putString

        public void putString​(java.lang.String str)
        Parameters:
        str -
      • reset

        public void reset()
      • simple

        public static byte[] simple​(byte[] data,
                                    java.lang.String algorithm)
                             throws java.security.NoSuchAlgorithmException
        Parameters:
        data -
        algorithm -
        Returns:
        Throws:
        java.security.NoSuchAlgorithmException
      • doFinal

        public byte[] doFinal()
        Returns: