|
||||||||||
| 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(String jceAlgorithm)
|
|
| Method Summary | |
|---|---|
byte[] |
doFinal()
Do the final processing and return the hash. |
String |
getName()
Get the digest name |
String |
getProvider()
|
void |
putBigInteger(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(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(String jceAlgorithm)
throws NoSuchAlgorithmException
NoSuchAlgorithmException| Method Detail |
|---|
public byte[] doFinal()
Digest
doFinal in interface Digestpublic void putBigInteger(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(String str)
Digest
putString in interface Digestpublic void reset()
Digest
reset in interface Digestpublic String getProvider()
public String getName()
Digest
getName in interface DigestgetName in interface SshComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||