jsdsi
Class HashOp

java.lang.Object
  extended byjsdsi.Obj
      extended byjsdsi.Op
          extended byjsdsi.HashOp
All Implemented Interfaces:
Element, java.io.Serializable

public class HashOp
extends Op

A hash operation that instructs a verifier to hash an object for later reference.

Version:
$Revision: 1.3.2.1 $ $Date: 2005/11/08 03:12:52 $
Author:
Sameer Ajmani, Sean Radford
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class jsdsi.Element
Element.Default
 
Field Summary
 
Fields inherited from class jsdsi.Obj
_obj
 
Constructor Summary
HashOp(java.lang.String a)
          Creates a new HashOp for a given hash algorithm.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 int hashCode()
           
 SexpList toSexp()
          Creates an SexpList -representation from this SDSI-object.
 
Methods inherited from class jsdsi.Obj
parseObj, parseObj, readResolve, toByteArray, toString, toString, toTransport
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashOp

public HashOp(java.lang.String a)
Creates a new HashOp for a given hash algorithm.

Parameters:
a - name of the hash algorithm for this hash op.
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Returns:
the name of the hash algorithm used.

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in class Obj
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Specified by:
hashCode in class Obj
See Also:
Object.hashCode()

toSexp

public SexpList toSexp()
Description copied from class: Obj
Creates an SexpList -representation from this SDSI-object.

Specified by:
toSexp in interface Element
Specified by:
toSexp in class Obj
Returns:
the SexpList representing this HashOp.


Copyright © 2002-2006 JSDSI. All Rights Reserved.