com.maverick.ssh.components.jce
Class AbstractDigest

java.lang.Object
  extended by com.maverick.ssh.components.jce.AbstractDigest
All Implemented Interfaces:
Digest
Direct Known Subclasses:
MD5Digest, SHA1Digest

public class AbstractDigest
extends Object
implements Digest

An abstract class that implements the Digest interface to provide support for JCE based digests.

Author:
Lee David Painter

Constructor Summary
AbstractDigest(String jceAlgorithm)
           
 
Method Summary
 byte[] doFinal()
           
 String getProvider()
           
 void putBigInteger(BigInteger bi)
           
 void putByte(byte b)
           
 void putBytes(byte[] data)
           
 void putBytes(byte[] data, int offset, int len)
           
 void putInt(int i)
           
 void putString(String str)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDigest

public AbstractDigest(String jceAlgorithm)
               throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException
Method Detail

doFinal

public byte[] doFinal()
Specified by:
doFinal in interface Digest

putBigInteger

public void putBigInteger(BigInteger bi)
Specified by:
putBigInteger in interface Digest

putByte

public void putByte(byte b)
Specified by:
putByte in interface Digest

putBytes

public void putBytes(byte[] data)
Specified by:
putBytes in interface Digest

putBytes

public void putBytes(byte[] data,
                     int offset,
                     int len)
Specified by:
putBytes in interface Digest

putInt

public void putInt(int i)
Specified by:
putInt in interface Digest

putString

public void putString(String str)
Specified by:
putString in interface Digest

reset

public void reset()
Specified by:
reset in interface Digest

getProvider

public String getProvider()


Copyright © 2012. All Rights Reserved.