public class AbstractDigest extends java.lang.Object implements Digest
Digest
interface to provide support for JCE based digests.| Constructor and Description |
|---|
AbstractDigest(java.lang.String jceAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public AbstractDigest(java.lang.String jceAlgorithm)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic byte[] doFinal()
Digestpublic void putBigInteger(java.math.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(java.lang.String str)
Digestpublic void reset()
Digestpublic java.lang.String getProvider()
Copyright © 2022. All rights reserved.