JXTA

jxta.security.impl.hash
Class NullHash

java.lang.Object
  |
  +--jxta.security.impl.hash.NullHash

public class NullHash
extends java.lang.Object
implements jxta.security.hash.Hash


Fields inherited from interface jxta.security.hash.Hash
ALG_MD5, ALG_NULL, ALG_SHA1, name
 
Constructor Summary
NullHash()
           
 
Method Summary
 void clearDebug()
          turn off debugging
 java.lang.Object clone()
          Clone ourself?
 int doFinal(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff)
          Nothing to finally do
 byte getAlgorithm()
           
 java.lang.String getAlgorithmName()
          // Algorithm name
 byte getDigestLength()
          No digest used
 void reset()
          Nothing to reset
 void setDebug()
          turn on debugging
 void update(byte[] buf, int off, int len)
          Nothing to update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullHash

public NullHash()
Method Detail

setDebug

public void setDebug()
turn on debugging

clearDebug

public void clearDebug()
turn off debugging

getAlgorithmName

public java.lang.String getAlgorithmName()
// Algorithm name

getAlgorithm

public byte getAlgorithm()
Specified by:
getAlgorithm in interface jxta.security.hash.Hash

getDigestLength

public byte getDigestLength()
No digest used
Specified by:
getDigestLength in interface jxta.security.hash.Hash

reset

public void reset()
Nothing to reset
Specified by:
reset in interface jxta.security.hash.Hash

clone

public java.lang.Object clone()
Clone ourself?
Specified by:
clone in interface jxta.security.hash.Hash
Overrides:
clone in class java.lang.Object

update

public void update(byte[] buf,
                   int off,
                   int len)
Nothing to update
Specified by:
update in interface jxta.security.hash.Hash

doFinal

public int doFinal(byte[] inBuf,
                   int inOff,
                   int inLen,
                   byte[] outBuf,
                   int outOff)
Nothing to finally do
Specified by:
doFinal in interface jxta.security.hash.Hash

JXTA