public class AbstractDigest extends Object implements Digest
Digest
interface to provide support for JCE based digests.| Constructor and Description |
|---|
AbstractDigest(String jceAlgorithm,
SecurityLevel securityLevel,
int priority) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doFinal()
Do the final processing and return the hash.
|
String |
getAlgorithm() |
int |
getPriority() |
String |
getProvider() |
SecurityLevel |
getSecurityLevel() |
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, SecurityLevel securityLevel, int priority) 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()
public SecurityLevel getSecurityLevel()
getSecurityLevel in interface SecureComponentpublic int getPriority()
getPriority in interface SecureComponentpublic String getAlgorithm()
getAlgorithm in interface SecureComponentCopyright © 2025. All rights reserved.