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
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()
Copyright © 2014. All rights reserved.