Class cryptix.security.HashSHA
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.security.HashSHA

java.lang.Object
   |
   +----cryptix.security.MessageHash
           |
           +----cryptix.security.HashSHA

public final class HashSHA
extends MessageHash
This class represents the output of a SHA message digestor.

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


Constructor Index

 o HashSHA(byte[])
Creates this from a byte array that must be the the correct length
 o HashSHA(SHA)
Creates this from an SHA message digestor

Method Index

 o toString()
Returns a big endian Hex string prefixed with "SHA:", showing the value of the hash.

Constructors

 o HashSHA
  public HashSHA(SHA md)
Creates this from an SHA message digestor
Parameters:
md - An SHA MessageDigest.
 o HashSHA
  public HashSHA(byte hash[])
Creates this from a byte array that must be the the correct length
Parameters:
hash - A byte array which represents an SHA hash.

Methods

 o toString
  public String toString()
Returns a big endian Hex string prefixed with "SHA:", showing the value of the hash.
Returns:
a string reprosenting the hash.
Overrides:
toString in class MessageHash

All Packages  Class Hierarchy  This Package  Previous  Next  Index