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
NoSuchAlgorithmException
public byte[] doFinal()
Digest
public void putBigInteger(BigInteger bi)
Digest
putBigInteger
in interface Digest
public void putByte(byte b)
Digest
public void putBytes(byte[] data)
Digest
public void putBytes(byte[] data, int offset, int len)
Digest
public void putInt(int i)
Digest
public void putString(String str)
Digest
public void reset()
Digest
public String getProvider()
public SecurityLevel getSecurityLevel()
getSecurityLevel
in interface SecureComponent
public int getPriority()
getPriority
in interface SecureComponent
public String getAlgorithm()
getAlgorithm
in interface SecureComponent
Copyright © 2024. All rights reserved.