public class AbstractDigest extends Object implements Digest
Digest interface to provide support for
JCE based digests.| Constructor and Description |
|---|
AbstractDigest(String jceAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doFinal()
Do the final processing and return the hash.
|
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.
|
public AbstractDigest(String jceAlgorithm) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic byte[] doFinal()
Digestpublic void putBigInteger(BigInteger bi)
DigestputBigInteger in interface Digestpublic void putByte(byte b)
Digestpublic void putBytes(byte[] data)
Digestpublic void putBytes(byte[] data,
int offset,
int len)
Digestpublic void putInt(int i)
Digestpublic void putString(String str)
Digestpublic void reset()
Digestpublic String getProvider()
Copyright © 2014. All rights reserved.