cryptix.security
Class HashSHA

java.lang.Object
  extended bycryptix.security.MessageHash
      extended bycryptix.security.HashSHA

Deprecated. Use MessageHash instead.

public final class HashSHA
extends MessageHash

This class represents the output of a SHA message digest.

Copyright (c) 1995, 1996 Systemics Ltd (http://www.systemics.com/) All rights reserved.

$Revision: 1.4 $

See Also:
MessageHash

Constructor Summary
HashSHA(byte[] hash)
          Deprecated. Use new MessageHash("SHA-1", hash) (note that this does not check the hash length).
HashSHA(SHA md)
          Deprecated. Use MessageHash.fromDigest(md).
 
Method Summary
static void main(java.lang.String[] argv)
          Deprecated. Entry point for self test.
 
Methods inherited from class cryptix.security.MessageHash
equals, fromDigest, fromDigest, getAlgorithm, hashCode, length, toByteArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashSHA

public HashSHA(SHA md)
Deprecated. Use MessageHash.fromDigest(md).

Constructs a HashSHA from an SHA message digest.

Parameters:
md - a SHA MessageDigest.

HashSHA

public HashSHA(byte[] hash)
Deprecated. Use new MessageHash("SHA-1", hash) (note that this does not check the hash length).

Constructs a HashSHA from a byte array that must be the the correct length.

Parameters:
hash - a byte array representing a SHA-1 hash.
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.io.IOException
Deprecated. 
Entry point for self test.

Throws:
java.io.IOException