|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.ssh.components.jce.AbstractDigest
public class AbstractDigest
An abstract class that implements the Digest
interface to provide support for JCE based digests.
| Constructor Summary | |
|---|---|
AbstractDigest(java.lang.String jceAlgorithm)
|
|
| Method Summary | |
|---|---|
byte[] |
doFinal()
Do the final processing and return the hash. |
java.lang.String |
getProvider()
|
void |
putBigInteger(java.math.BigInteger bi)
Update the digest with a BigInteger value. |
void |
putByte(byte b)
Put a single byte into the digest. |
void |
putBytes(byte[] data)
Put a byte array into the digest. |
void |
putBytes(byte[] data,
int offset,
int len)
Put a byte array into the digest |
void |
putInt(int i)
Put an integer into the digest. |
void |
putString(java.lang.String str)
Put a String into the digest. |
void |
reset()
Reset the underlying digest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDigest(java.lang.String jceAlgorithm)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException| Method Detail |
|---|
public byte[] doFinal()
Digest
doFinal in interface Digestpublic void putBigInteger(java.math.BigInteger bi)
Digest
putBigInteger in interface Digestpublic void putByte(byte b)
Digest
putByte in interface Digestpublic void putBytes(byte[] data)
Digest
putBytes in interface Digest
public void putBytes(byte[] data,
int offset,
int len)
Digest
putBytes in interface Digestpublic void putInt(int i)
Digest
putInt in interface Digestpublic void putString(java.lang.String str)
Digest
putString in interface Digestpublic void reset()
Digest
reset in interface Digestpublic java.lang.String getProvider()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||