com.maverick.ssh.components.jce
Class AbstractDigest
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDigest
public AbstractDigest(String jceAlgorithm)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
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.